nginx -s reload terminates connections
mdounin at mdounin.ru
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.
> 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
TL;DR: when using keepalive connections, clients are expected to
be prepared that a connection can be closed.
More information about the nginx