]> git.kaiwu.me - nginx.git/commitdiff
increase request counter before an upstream cleanup because the cleanup
authorIgor Sysoev <igor@sysoev.ru>
Tue, 8 Sep 2009 11:37:50 +0000 (11:37 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 8 Sep 2009 11:37:50 +0000 (11:37 +0000)
decreases the counter via ngx_http_finalize_request(r, NGX_DONE),
the bug was introduced in r3050

src/http/ngx_http_upstream.c

index 6f15c044d0cb02c6aac42d9c718deea772507a9d..5186b8010107962e17c3d9f3ee8eccaeecd6cc09 100644 (file)
@@ -363,6 +363,7 @@ ngx_http_upstream_create(ngx_http_request_t *r)
     u = r->upstream;
 
     if (u && u->cleanup) {
+        r->main->count++;
         ngx_http_upstream_cleanup(r);
         *u->cleanup = NULL;
     }