diff src/core/ngx_connection.c @ 4953:5e9d5786ec06 stable-1.2

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 10 Dec 2012 17:46:51 +0000
parents 67653855682e
children c0497468f521
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;
 }