From da130acfbe130ce655314ec128bcc1e5f0e334c6 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 20 Nov 2012 13:37:55 +0000 Subject: Fixed failure to start cache manager and cache loader processes if there were more than 512 listening sockets in configuration. --- src/core/ngx_connection.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core') diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c index 660e0af4a..c818114df 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; } -- cgit