Hi, I have just encountered some problems when trying to download files with the freevo webserver. When clicking on the download link, it did load about the first 64k, but not further. In the webserver log file (/tmp/freevo/webserver-1001.log) I found ...Warning! request.finish called twice and two lines down ...Failure: exceptions.RuntimeError: Producer was not unregistered for /library.rpy/mm/Videos/...
I have changed some lines in /usr/share/freevo/htdocs/library.rpy as given below. It seems that the server needs the result of File().render to know that it has to keep the connection open. request.finish is called inside File().render, so you won't need to do it yourself. Regards, Thorsten *** library.rpy.old Fri Jan 16 02:32:11 2004 --- library.rpy Fri Jan 16 02:10:40 2004 *************** *** 217,224 **** elif action == 'download': sys.stderr.write('download %s' % file_loc) sys.stderr.flush() ! static.File(file_loc).render(request) ! request.finish() else: fv.res += '%s does not exist. no action taken.' % file_loc else: --- 217,224 ---- elif action == 'download': sys.stderr.write('download %s' % file_loc) sys.stderr.flush() ! return static.File(file_loc).render(request) ! # request.finish() else: fv.res += '%s does not exist. no action taken.' % file_loc else: ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Freevo-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-users