From 3e751480b2deaa171e319da5f068eb22389a7aa7 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 8 Sep 2009 11:37:50 +0000 Subject: [PATCH] increase request counter before an upstream cleanup because the cleanup decreases the counter via ngx_http_finalize_request(r, NGX_DONE), the bug was introduced in r3050 --- src/http/ngx_http_upstream.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 6f15c044d..5186b8010 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -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; }