Gregory (Grisha) Trubetskoy
grisha at modpython.org
Fri Jun 27 00:40:46 EST 2003
On Thu, 26 Jun 2003, Robert Sanderson wrote: > However, the connection object is a little too high level ... are there > plans for implementing a lower level 'socket' like interface, rather than > a blocking line or character reader? The mod_perl module has this sort of > interface for example (AFAICT) > > For example, I need to be able to consume all of the data currently > waiting into one chunk to process ... which may or may not end in a > linebreak character, can be of arbitrary length and the connection > doesn't close after sending. So I can't use either read() or readline(), > with or without arguments :/ I'm curious what mod_perl folks are doing, I haven't looked at it. Unless I'm mising something, the only way you can deal with this kind of data is read a character at a time. (Or non-blocking IO, but off the top of my head I don't even know if Apache supports it) Grisha
|