[mod_python] Request sendfile question

Deron Meranda deron.meranda at gmail.com
Fri Mar 24 10:29:40 EST 2006

On 3/24/06, Ville Silventoinen <vsi at ebi.ac.uk> wrote:
> 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?

I believe the file descriptor has to be a real file, meaning
it is seekable, as well as mmap-able (if MMAP is enabled in
your apache).  This is part of the APR bucket brigade stuff
deep inside Apache.

It's still best I think to do it with a loop like you first showed.
Deron Meranda

More information about the Mod_python mailing list