From 4956ac510858c5bc32945bcb87a460b91440ad3e Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 4 Apr 2011 12:26:53 +0000 Subject: reuse keepalive connections if there are no free worker connections patch by Maxim Dounin --- src/core/ngx_cycle.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/ngx_cycle.c') diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c index 357c6b284..79867079d 100644 --- a/src/core/ngx_cycle.c +++ b/src/core/ngx_cycle.c @@ -181,6 +181,9 @@ ngx_init_cycle(ngx_cycle_t *old_cycle) 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); -- cgit