- Publicity: Public Only All
bgdelivery-procs.tcl
Routines for background delivery of files
- Location:
- packages/xotcl-core/tcl/bgdelivery-procs.tcl
- Created:
- 19 Nov 2005
- Author:
- Gustaf Neumann <neumann@wu-wien.ac.at>
- CVS Identification:
$Id: bgdelivery-procs.tcl,v 1.70 2024/09/11 06:15:56 gustafn Exp $
Procedures in this file
- ad_returnfile_background (public)
Detailed information
ad_returnfile_background (public)
ad_returnfile_background [ -client_data client_data ] status_code \ mime_type filename
Deliver the given file to the requester in the background. When using NaviServer with its writer threads, ns_returnfile is perfectly fine since it delivers its contents already in the background. The main reason for using the bgdelivery thread is currently (2019) the support of h264 streaming (when the module is in use). So we check, whether h264 is available and requested, otherwise pass everything to ns_returnfile.
- Switches:
- -client_data (optional)
- Parameters:
- status_code (required)
- mime_type (required)
- filename (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- nested_self_references