Hello!
On Thu, Nov 02, 2017 at 08:41:16PM +1100, Wei Xu wrote:
> Hi
> I saw there's an issue talking about "implement keepalive timeout for
> upstream https://trac.nginx.org/nginx/ticket/1170".
>
> I have a different scenario for this requirement.
>
> I'm using Node.js web server as upstream, and set keep alive time out to 60
> second in nodejs server. The problem is I found more than a hundred
> "Connection reset by peer" errors everyday.
>
> Because there's no any errors on nodejs side, I guess it was because of the
> upstream has disconnected, and at the same time, nginx send a new request,
> then received a TCP RST.
Could you please trace what actually happens on the network level
to confirm the guess is correct?
Also, please check that there are no stateful firewalls between
nginx and the backend. A firewall which drops the state before
the timeout expires looks like a much likely cause for such
errors.
--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel