Index: openacs-4/packages/xotcl-core/tcl/bgdelivery-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-core/tcl/bgdelivery-procs.tcl,v diff -u -N -r1.24 -r1.25 --- openacs-4/packages/xotcl-core/tcl/bgdelivery-procs.tcl 10 Apr 2009 12:04:10 -0000 1.24 +++ openacs-4/packages/xotcl-core/tcl/bgdelivery-procs.tcl 27 Oct 2009 22:50:16 -0000 1.25 @@ -235,10 +235,19 @@ #ns_setexpires 1000000 #ns_log notice "expires-set $filename" + # + # Make sure to set "connection close" for the reqests (in other + # words, don't allow keep-alive, which is does not make sense, when + # we close the connections manually in the bgdeliverfy thread). + # + if {[ns_info name] eq "NaviServer"} { + ns_conn keepalive 0 + } + if {[my write_headers $status_code $mime_type $size]} { if {$size == 0} { - # Tcl behaves differnt, when one tries to send 0 bytes via + # Tcl behaves different, when one tries to send 0 bytes via # file_copy. So, we handle this special case here... # There is actualy nothing to deliver.... return