Maxim Dounin
June 21, 2010 08:14AM
Hello!

On Fri, Jun 18, 2010 at 10:25:10AM -0400, woodsmar wrote:

> I tried the patch but unfortunately that didn't work as I still get the
> same behaviour. With debugging turned on the following is an excerpt
> from the error log:

[...]

> 2010/06/18 13:16:48 [debug] 30676#0: *1 readv: 1:3642
> 2010/06/18 13:16:48 [error] 30676#0: *1 readv() failed (104: Connection
> reset by peer) while reading upstream, client: 1
> 27.0.0.1, server: myserver.com, request: "POST /some/url HTTP/1.1",
> upstream: "http://some/other/url", host: "127.0.0.1"

Backend reseted connection instead of closing it, that's the
reason why you don't see reply.

In your particular case nginx actually got full reply but
discarded body as it got error from backend before it was able to
send it. This theoretically may be handled gracefully (and I even
posted patches for this a while ago). But note that with reset
there is a good chance that nginx won't see data at all as they
will be discarded in socket buffer by OS.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

File upload with a 500 response

woodsmar June 18, 2010 07:04AM

Re: File upload with a 500 response

Maxim Dounin June 18, 2010 08:06AM

Re: File upload with a 500 response

woodsmar June 18, 2010 10:25AM

Re: File upload with a 500 response

Maxim Dounin June 21, 2010 08:14AM

Re: File upload with a 500 response

woodsmar June 21, 2010 08:23AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 256
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready