diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-06-15 08:43:10 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-06-15 08:43:10 +0000 |
| commit | c4f6d11856d0d5dbf1f02f107dd90f94fe70963d (patch) | |
| tree | 3f132341628fe8fa77a7e00ce26716104bb23a18 /src/http/ngx_http_request.c | |
| parent | 1bf967880effd1b03ae1be106b790bf55590f0b6 (diff) | |
| download | nginx-c4f6d11856d0d5dbf1f02f107dd90f94fe70963d.tar.gz nginx-c4f6d11856d0d5dbf1f02f107dd90f94fe70963d.tar.bz2 | |
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
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_request.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index c9c6db729..4e799e96a 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -259,6 +259,8 @@ ngx_http_init_request(ngx_event_t *rev) return; } + c->requests++; + hc = c->data; if (hc == NULL) { |
