I've been using the xotcl/bgdelivery/ad_returnfile_backgound method described
here and
here, but on busy servers serving large files (that is progressive download videos) I'm getting this error after a while:
ERROR=transfer failed: channel already exists in target
while executing
"error ERROR=$errorMsg"
(procedure "returnfile" line 42)
::bgdelivery->returnfile
invoked from within
"bgdelivery returnfile -client_data $client_data $status_code $mime_type $filename"
(procedure "ad_returnfile_background" line 7)
invoked from within
"ad_returnfile_background 200 [ns_guesstype $full_filename] $full_filename"
I haven't been able to find a good, simple explanation for this -- my guess is that this starts happening when we've served about 600-800 videos in 20 minutes or something like that.
Does anyone have a nice reason for the error? And, even better, a good solution?
Thanks,
Steffen