Hmm this used to work with Twisted 1.06 but now with 1.1.0 I need this
patch too. I will have to look at the changelog for twisted.

Mike

On Mon, 2004-01-26 at 03:22, Pferdekaemper, Thorsten wrote:
> Hi,
> I had a similar problem. I tracked it down and created a diff I have posted last 
> week. I have copied my posting below.
> Kind regards,
>       Thorsten
> 
> 
> 
> 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:
> 
> 
>           
> 
> 
> 
> > -----UrsprÃngliche Nachricht-----
> > Von: [EMAIL PROTECTED] [mailto:freevo-users-
> > [EMAIL PROTECTED] Im Auftrag von Michael Ekkert
> > Gesendet: Sonntag, 25. Januar 2004 05:23
> > An: [EMAIL PROTECTED]
> > Betreff: [Freevo-users] Web Interface download problems...
> > 
> > When downloading files through web interface...
> > When logged into the freevo web interface, downloading
> > media items (Video, Audio) via the download link is
> > truncated the file to 64kb.
> > 
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004
> > NâÃÂzfÂâ+,ÂâÃÂÂÂo!â*lx*'ÃM8>ÂÂâÃÃ
> > âÃzÂÂqÃ':â
> > ÂNÅ%Â7ÂzZ)âÃÃjwHÅà 
> > ÂÂbÂtÅzÃ^nÂÅvÃh|G%ÅâiÃbÂ+rÃÃÂÂÃÃËÂvÂz)âmÂÃÃÃ
> Åâ
> > *lyÃ'ÂÂ?ÂÃgÂÅÂâÂzÂ&j)bÅ
> >     bÂÃkyÃÃÂÃÂÂXÂÂÃ(ÂÂ~ÅÃzwÂâÃiÂÃÃÅÃlÂâÂqÃÃÂ
> ÂzÃÃÅÃlÃXÂÂ)ÃÂÃÃyÃÃÂÃÂ
> 
> 
> -------------------------------------------------------
> 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
-- 
Mike Ruelle
[EMAIL PROTECTED]
http://world.std.com/~mruelle/



-------------------------------------------------------
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

Reply via email to