diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2012-12-10 17:46:51 +0000 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2012-12-10 17:46:51 +0000 |
| commit | e3cf44789f2a6e256a596f187c6d4211859f1d73 (patch) | |
| tree | a8a4bc3c2356a2ea3a40aec357b6dbecd663339a /src/core/ngx_connection.c | |
| parent | 72bba4144b29c22753fc7463088597b871c087fa (diff) | |
| download | nginx-e3cf44789f2a6e256a596f187c6d4211859f1d73.tar.gz nginx-e3cf44789f2a6e256a596f187c6d4211859f1d73.tar.bz2 | |
Merge of r4918: cache manager startup with many listen sockets.
Fixed failure to start cache manager and cache loader processes
if there were more than 512 listening sockets in configuration.
Diffstat (limited to 'src/core/ngx_connection.c')
| -rw-r--r-- | src/core/ngx_connection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c index ba1b3f9e2..3ba5e7682 100644 --- a/src/core/ngx_connection.c +++ b/src/core/ngx_connection.c @@ -749,6 +749,8 @@ ngx_close_listening_sockets(ngx_cycle_t *cycle) ls[i].fd = (ngx_socket_t) -1; } + + cycle->listening.nelts = 0; } |
