Mercurial > hg > nginx
comparison src/os/win32/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 | 8b84d60ef13d |
comparison
equal
deleted
inserted
replaced
6929:3069dd358ba2 | 6930:97c99bb43737 |
---|---|
798 if (ngx_quit) { | 798 if (ngx_quit) { |
799 ngx_quit = 0; | 799 ngx_quit = 0; |
800 | 800 |
801 if (!ngx_exiting) { | 801 if (!ngx_exiting) { |
802 ngx_exiting = 1; | 802 ngx_exiting = 1; |
803 ngx_set_shutdown_timer(cycle); | |
803 ngx_close_listening_sockets(cycle); | 804 ngx_close_listening_sockets(cycle); |
804 ngx_close_idle_connections(cycle); | 805 ngx_close_idle_connections(cycle); |
805 } | 806 } |
806 } | 807 } |
807 | 808 |