[Web-SIG] serving (potentially large) files through wsgi?

Robert Brewer fumanchu at aminus.org
Mon Dec 17 18:40:16 CET 2007


Chris Withers wrote:
> Manlio Perillo wrote:
> > 2) handle the range request in the WSGI application.
> >    Its not hard as long as you do not implement multiple ranges
> support.
> >
> >    If your object database supports seeks, this should be the most
> >    efficient solution.
> 
> This is probably what's wanted. So, if a wsgi app does its own range
> handling, the wsgi server won't interfere?

Apache will interfere, and try to re-apply the range to whatever you
emit. The only solution we've found so far is to tell the app to ignore
any 'Range' request header when running behind Apache, and just let
Apache have its way. See http://www.cherrypy.org/changeset/1319


Robert Brewer
fumanchu at aminus.org


More information about the Web-SIG mailing list