diff src/core/ngx_connection.c @ 4917:484aec758d2c

Fixed failure to start cache manager and cache loader processes if there were more than 512 listening sockets in configuration.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 20 Nov 2012 13:37:55 +0000
parents bdcdbdf35b52
children 93713d4b99c3
line wrap: on
line diff
--- a/src/core/ngx_connection.c
+++ b/src/core/ngx_connection.c
@@ -749,6 +749,8 @@ ngx_close_listening_sockets(ngx_cycle_t 
 
         ls[i].fd = (ngx_socket_t) -1;
     }
+
+    cycle->listening.nelts = 0;
 }