diff 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
line wrap: on
line diff
--- 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) {