Mercurial > hg > nginx
diff src/os/unix/ngx_process_cycle.c @ 6930:97c99bb43737
Introduced worker_shutdown_timeout.
The directive configures a timeout to be used when gracefully shutting down
worker processes. When the timer expires, nginx will try to close all
the connections currently open to facilitate shutdown.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 07 Mar 2017 18:51:16 +0300 |
parents | 3069dd358ba2 |
children | d45072375572 |
line wrap: on
line diff
--- a/src/os/unix/ngx_process_cycle.c Tue Mar 07 18:51:15 2017 +0300 +++ b/src/os/unix/ngx_process_cycle.c Tue Mar 07 18:51:16 2017 +0300 @@ -763,6 +763,7 @@ if (!ngx_exiting) { ngx_exiting = 1; + ngx_set_shutdown_timer(cycle); ngx_close_listening_sockets(cycle); ngx_close_idle_connections(cycle); }