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

Manlio Perillo manlio_perillo at libero.it
Mon Dec 17 18:59:43 CET 2007

Robert Brewer ha scritto:
> 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

Strange, looking at the byterange filter source code (from trunk) it 
seems that Apache first checks if content is already a single or 
multiple range
(searching  for Content-Range and Content-Type = "multipart/byteranges 
in in headers_out)

> Robert Brewer
> fumanchu at aminus.org

Manlio Perillo

More information about the Web-SIG mailing list