[mod_python] Request sendfile question

Jim Gallacher jpg at jgassociates.ca
Fri Mar 24 12:11:34 EST 2006

Ville Silventoinen wrote:
> On Fri, 24 Mar 2006, Jim Gallacher wrote:
>> Ville Silventoinen 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 have not idea but it seems rather complicated and would still 
>> require modifying requestobject.c to expose the apache ap_send_fd 
>> call. I'm not convinced it would be worth the effort. What are you 
>> trying to achieve exactly that makes your orginal solution unacceptable?
> I was just curious if anyone has tried something like that or if my 
> solution is somehow faulty or slow compared to the sendfile. Sorry for 
> asking stupid questions.

They are not stupid questions, just premature optimizations. :)


More information about the Mod_python mailing list