[mod_python] Serving FS data

Igor Stroh igor at rulim.de
Tue Jan 18 10:21:04 EST 2005


Hi there,

I'm looking for a way to serve files from the filesystem
through mod_python. Right now I'm just doing stuff like
request.write(file(<path>).read())
but this is obviously quite expensive when the files are
big, since they're dumped at once into memory...
The whole thing would be ways faster if there would be
a way to just "pipe" those files through mod_python
directly to apache, i.e. just by pointing to a path
or a file descriptor... Any ideas?

TIA,
Igor


More information about the Mod_python mailing list