Re: [Web-SIG] Most WSGI servers close connections to early.

2010-09-27 Thread And Clover
On 09/22/2010 02:46 PM, Marcel Hellkamp wrote: An application should read all available data from `environ['wsgi.input']` on POST or PUT requests, even if it does not process that data. Otherwise, the client might fail to complete the request and not display the response. Oh, it's worse than

[Web-SIG] Most WSGI servers close connections to early.

2010-09-22 Thread Marcel Hellkamp
I just discovered a problem that affects most WSGI server implementations and most current web-browsers (tested with wsgiref, paste, firefox, chrome, wget and curl): If the server closes the connection while the client is still uploading data via POST or PUT, the browser displays an error message

Re: [Web-SIG] Most WSGI servers close connections to early.

2010-09-22 Thread Robert Brewer
Marcel Hellkamp wrote: I just discovered a problem that affects most WSGI server implementations and most current web-browsers (tested with wsgiref, paste, firefox, chrome, wget and curl): If the server closes the connection while the client is still uploading data via POST or PUT, the

Re: [Web-SIG] Most WSGI servers close connections to early.

2010-09-22 Thread Benoit Chesneau
On Wed, Sep 22, 2010 at 2:46 PM, Marcel Hellkamp m...@gsites.de wrote: I just discovered a problem that affects most WSGI server implementations and most current web-browsers (tested with wsgiref, paste, firefox, chrome, wget and curl): If the server closes the connection while the client is

Re: [Web-SIG] Most WSGI servers close connections to early.

2010-09-22 Thread Benoit Chesneau
On Wed, Sep 22, 2010 at 5:34 PM, Robert Brewer fuman...@aminus.org wrote: However, the caveat requires a caveat: servers must still be able to protect themselves from malicious clients. In practice, that means allowing servers to close the connection without reading the entire request body

Re: [Web-SIG] Most WSGI servers close connections to early.

2010-09-22 Thread P.J. Eby
At 08:34 AM 9/22/2010 -0700, Robert Brewer wrote: Marcel Hellkamp wrote: I would like to add a warning to the WSGI/web3 specification to address this issue: An application should read all available data from `environ['wsgi.input']` on POST or PUT requests, even if it does not process that

Re: [Web-SIG] Most WSGI servers close connections to early.

2010-09-22 Thread Robert Brewer
Benoit Chesneau wrote: On Wed, Sep 22, 2010 at 5:34 PM, Robert Brewer fuman...@aminus.org wrote: However, the caveat requires a caveat: servers must still be able to protect themselves from malicious clients. In practice, that means allowing servers to close the connection without reading