[mod_python] access to ap_send_fd from python

Jeff jam at quark.emich.edu
Sat Jun 17 11:26:00 EST 2000


Greetings,

I was looking through the API documentation and found the ap_send_fd
function (http://dev.apache.org/apidoc/apidoc_ap_send_fd.html). It's purpose
is to send the contents of a FILE* to the client. 

This seems appropriate when static files need to be served-- decode the URL
the client is asking for, open the file, set the appropriate headers
(content-type in particular), call this function, then close the file. This
moves the 'work' of sending the file into the C code, instead of using
Python, which would seem to be quite a bit faster.

Could this be considered for a future releases of mod_python? 

Are there any issues I should be aware of before trying to get it to work?

Regards,
J
-- 
|| visit gfd <http://quark.emich.edu/>
|| psa member -- <http://www.python.org/psa/> 



More information about the Mod_python mailing list