nginx -s reload terminates connections

Maxim Dounin mdounin at
Fri Jul 7 12:28:48 UTC 2017


On Fri, Jul 07, 2017 at 05:49:18AM -0400, JackB wrote:

> Tested ab and confirmed terminated requests with reloads during run
> (complete output pasted at the end).
> Failed requests:        180
>    (Connect: 0, Receive: 24, Length: 78, Exceptions: 78)
> ab reports reports terminated connections while receiving. This should not
> happen at all when executing a reload.
> But:
> If I run ab without keepalive connections, it is not possible for me to get
> failed requests by reloading nginx. Maybe the problem is related with
> persistent connections.
> Does your edge nginx use keepalive connections to access the internal
> nginx?


TL;DR: when using keepalive connections, clients are expected to 
be prepared that a connection can be closed.

Maxim Dounin

More information about the nginx mailing list