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.52 -r1.53 --- openacs-4/packages/xotcl-core/tcl/bgdelivery-procs.tcl 7 Oct 2017 18:18:45 -0000 1.52 +++ openacs-4/packages/xotcl-core/tcl/bgdelivery-procs.tcl 7 Oct 2017 18:26:54 -0000 1.53 @@ -9,6 +9,22 @@ if {[info commands ::thread::mutex] eq ""} { ns_log notice "libthread does not appear to be available, NOT loading bgdelivery" + + ad_proc -public ad_returnfile_background {{-client_data ""} status_code mime_type filename} { + + This function is a stub-function to be used, when no libthread is + available. When used with NaviServer, ns_returnfile uses the + writer threads, which will be even better than the solution via + the bgdelivery thread, since it works as well via https and uses + less resources. + + One reason for still using the bgdelivery thread is h264 streaming + (when the module is in use). + + } { + ns_returnfile $status_code $mime_type $filename + } + return } #return ;# DONT COMMIT