Mercurial > hg > nginx-quic
comparison 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 |
comparison
equal
deleted
inserted
replaced
3879:502a6b0acf3f | 3880:e3cb8e27e413 |
---|---|
179 cycle->listening.size = sizeof(ngx_listening_t); | 179 cycle->listening.size = sizeof(ngx_listening_t); |
180 cycle->listening.nalloc = n; | 180 cycle->listening.nalloc = n; |
181 cycle->listening.pool = pool; | 181 cycle->listening.pool = pool; |
182 | 182 |
183 | 183 |
184 ngx_queue_init(&cycle->reusable_connections_queue); | |
185 | |
186 | |
184 cycle->conf_ctx = ngx_pcalloc(pool, ngx_max_module * sizeof(void *)); | 187 cycle->conf_ctx = ngx_pcalloc(pool, ngx_max_module * sizeof(void *)); |
185 if (cycle->conf_ctx == NULL) { | 188 if (cycle->conf_ctx == NULL) { |
186 ngx_destroy_pool(pool); | 189 ngx_destroy_pool(pool); |
187 return NULL; | 190 return NULL; |
188 } | 191 } |