aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_connection.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2012-11-20 13:37:55 +0000
committerIgor Sysoev <igor@sysoev.ru>2012-11-20 13:37:55 +0000
commitda130acfbe130ce655314ec128bcc1e5f0e334c6 (patch)
tree254ec4a17bf524fa54db64436303b55b4447e760 /src/core/ngx_connection.c
parent246cbd21ce2aad389bcf538b6ed420197e1fc132 (diff)
downloadnginx-da130acfbe130ce655314ec128bcc1e5f0e334c6.tar.gz
nginx-da130acfbe130ce655314ec128bcc1e5f0e334c6.zip
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.c2
1 files changed, 2 insertions, 0 deletions
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;
}