[mod_python] Request sendfile question

Ville Silventoinen vsi at ebi.ac.uk
Fri Mar 24 09:31:40 EST 2006

On Fri, 24 Mar 2006, Jim Gallacher wrote:

> Ville Silventoinen wrote:
>>     req.filename = fname
>>     req.content_type = ctype
>>     req.set_content_length = flen
>                            ^^^^^^^^
> I assume this is a typo but just in case it's not, req.set_content_length is 
> a method, not an attribute.

Yes, that was a typo, sorry.

Thanks for your comments.

One colleague suggested using a named pipe. The mod_python process would 
fork a child process, which would set up the named pipe for the 
decompressed stream. The parent would wait until this is done and then use 
the named pipe filename with req.sendfile. Any idea if something like that 
would work?


More information about the Mod_python mailing list