Jay Love wrote:
> I'm working on it right now. I suspect there will be some preliminary
> support in a week or so in CVS.
Any thoughts on streamed reads? I noticed that CGIAdapter.py line 54 will suck up a 47MB file into memory without thinking, before it even knows that the request will be accepted at all (i.e. before the Request object is even instantiated, headers validated, servlet found, etc.). Similarly in FCGIAdapter.py line 151. In ModPythonAdapter, the situation seems to be slightly different: there is a note about bad performance if the file is not read in one shot. In general, it would seem to me that transactWithAppServer should accept a file argument for input, rather than a 47MB string. Then the responsible servlet could say "throw this away--it is garbage" or "copy the next 47891 bytes from this socket to '/path/to/my/data/bigpicture089.jpg'"
For the sake of learning how to do it, I am going to play with asyncore/medusa and see if I can figure out a "copyfile" function. Think this could be useful for both sending and receiving.