Fwd: [ module ] Add http upstream keep alive timeout parameter
mdounin at mdounin.ru
Thu Nov 9 17:07:02 UTC 2017
On Thu, Nov 02, 2017 at 08:41:16PM +1100, Wei Xu wrote:
> 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
More information about the nginx-devel