Klaus Demo nginx / db40227
Added msleep() on reload to allow new processes to start. This is expected to ensure smoother operation on reload (and with less chance of listen queue overflows). Prodded by Igor Sysoev. Maxim Dounin 10 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
249249 ngx_start_worker_processes(cycle, ccf->worker_processes,
250250 NGX_PROCESS_JUST_RESPAWN);
251251 ngx_start_cache_manager_processes(cycle, 1);
252
253 /* allow new processes to start */
254 ngx_msleep(100);
255
252256 live = 1;
253257 ngx_signal_worker_processes(cycle,
254258 ngx_signal_value(NGX_SHUTDOWN_SIGNAL));