From: Igor Sysoev Date: Tue, 8 Sep 2009 11:37:50 +0000 (+0000) Subject: increase request counter before an upstream cleanup because the cleanup X-Git-Tag: release-0.8.15~11 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=3e751480b2deaa171e319da5f068eb22389a7aa7;p=nginx.git 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 --- 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; }