Mercurial > hg > nginx
diff src/core/ngx_cycle.c @ 3880:e3cb8e27e413
reuse keepalive connections if there are no free worker connections
patch by Maxim Dounin
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 04 Apr 2011 12:26:53 +0000 |
parents | ffbdaa3c70d6 |
children | a1dd9dc754ab |
line wrap: on
line diff
--- a/src/core/ngx_cycle.c Mon Apr 04 10:43:21 2011 +0000 +++ b/src/core/ngx_cycle.c Mon Apr 04 12:26:53 2011 +0000 @@ -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);