Welcome! Log In Create A New Profile

Advanced

Graceful shutdown and idle connection

Posted by mongia.ramandeep 
Graceful shutdown and idle connection
March 24, 2015 03:30AM
Considering the following sequence of events:

1. A client makes a connection with Nginx, no data is sent as yet
2. Nginx receives a SIGQUIT,graceful shutdown signal
2a. If there is no data from client, Nginx waits till "client_header_timeout" value before closing the connection and proceeding the shutdown
2b. If client sends a request before the above timeout, Nginx closes the connection after serving the request.

Is that correct behavior? Shouldn't Nginx close the idle connections immediately after receiving the shutdown signal?



Edited 1 time(s). Last edit at 03/24/2015 03:30AM by mongia.ramandeep.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
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