'Connection reset by peer' when replying before the end of POST data

Eric Wong normalperson at yhbt.net
Fri Mar 2 21:05:14 UTC 2012

Lunar <lunar at anargeek.net> wrote:
> > This whole issue leaves me severely disappointed. It looks like I either
> > have to waste much of my users time (by forcing them to upload the whole
> > file) or leave them clueless if the file is too big (by cutting the
> > connection early, resulting in a "reset by peer message"). What a
> > choice…
> Just for the record, reverse proxying this last iteration with Nginx
> (with "proxy_buffering off;") or Apache (with
> "SetEnv proxy-sendchunks 1") result in 413 displayed and full
> transmission of the given file with all clients (curl included).

Ouch :(

I think using 100-continue is the only halfway-viable choice.
Too bad it's:

  1) subject to race conditions
  2) can't help with chunked transfers
  3) not widely-supported (any widespread clients besides curl?)

Anyways, thanks for all your testing and reports!

More information about the rainbows-talk mailing list