Changeset 4500:9dfe02dd0f11 in nginx


Ignore:
Timestamp:
02/28/12 11:40:18 (8 years ago)
Author:
Maxim Dounin <mdounin@…>
Branch:
default
Phase:
public
Convert:
svn:c3fe7df1-7212-e011-8a91-001109144009/trunk@4501
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/os/unix/ngx_process_cycle.c

    r4412 r4500  
    251251                                       NGX_PROCESS_JUST_RESPAWN);
    252252            ngx_start_cache_manager_processes(cycle, 1);
     253
     254            /* allow new processes to start */
     255            ngx_msleep(100);
     256
    253257            live = 1;
    254258            ngx_signal_worker_processes(cycle,
Note: See TracChangeset for help on using the changeset viewer.