commit | 4956ac510858c5bc32945bcb87a460b91440ad3e | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Mon Apr 04 12:26:53 2011 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Mon Apr 04 12:26:53 2011 +0000 |
tree | c3692ef67e1a4fb4d10a4ab213c13844a34173ed | |
parent | fde7d51392598d0fa74dca125883d9663e7eb80a [diff] [blame] |
reuse keepalive connections if there are no free worker connections patch by Maxim Dounin
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c index 357c6b2..7986707 100644 --- a/src/core/ngx_cycle.c +++ b/src/core/ngx_cycle.c
@@ -181,6 +181,9 @@ cycle->listening.pool = pool; + ngx_queue_init(&cycle->reusable_connections_queue); + + cycle->conf_ctx = ngx_pcalloc(pool, ngx_max_module * sizeof(void *)); if (cycle->conf_ctx == NULL) { ngx_destroy_pool(pool);