Mercurial > hg > nginx-quic
comparison src/http/ngx_http_request.c @ 2939:7d8667499ddc stable-0.7
merge r2889, r2918, and r2921:
fix a pool growing and CPU usage for multi-requests keepalive connections:
*) keepalive_requests
*) try to reuse last 4 free large allocation links
*) do not test a pool block space if we can not allocated from
the block 4 times
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 15 Jun 2009 08:43:10 +0000 |
parents | d0cba58e5bfa |
children | a1a1c7e3fb8d 19f9a5eae383 |
comparison
equal
deleted
inserted
replaced
2938:b002fa81b00d | 2939:7d8667499ddc |
---|---|
257 | 257 |
258 ngx_http_close_connection(c); | 258 ngx_http_close_connection(c); |
259 return; | 259 return; |
260 } | 260 } |
261 | 261 |
262 c->requests++; | |
263 | |
262 hc = c->data; | 264 hc = c->data; |
263 | 265 |
264 if (hc == NULL) { | 266 if (hc == NULL) { |
265 hc = ngx_pcalloc(c->pool, sizeof(ngx_http_connection_t)); | 267 hc = ngx_pcalloc(c->pool, sizeof(ngx_http_connection_t)); |
266 if (hc == NULL) { | 268 if (hc == NULL) { |