On 28/01/2008, Brian Smith <[EMAIL PROTECTED]> wrote: > Graham Dumpleton wrote: > > On 26/01/2008, Brian Smith <[EMAIL PROTECTED]> wrote: > > As to your questions about read() with no argument, or with > > traditional Python file like object default of -1, the only > > WSGI server/adapter I know of where this will NOT work as one > > would expect, ie., read remainder of request content, is the > > CherryPy WSGI adapter. > > > > As far as I know it works fine with Apache CGI WSGI adapters, > > Apache mod_wsgi, plus SCGI, FASTCGI and AJP adapters via > > flup, as well as with paste WSGI server. Not sure what > > wsgiref will do though. > > It doesn't work on mod_wsgi either. When I tried it, it only returned > 8000 bytes of the input. That is why I started this thread in the first > place, actually. If this isn't the behavior you expected, I will file a > bug with a test case. (Google Code doesn't allow for attachments to bug > reports too, maybe I will create my own "WSGI testcases" project on > Google Code to store them all in SVN.)
Whoops, you are right. Very very early development versions of mod_wsgi would read everything, but for some reason I changed tack as was experimenting with read() with no argument returning only what was actually available at that time, possibly to see how input chunking could work. Ie., simulating a non blocking read. I thought I had put it back to read everything. Obviously I completely forgot what I was doing. :-( Graham _______________________________________________ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com