aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-09-08 11:37:50 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-09-08 11:37:50 +0000
commit3e751480b2deaa171e319da5f068eb22389a7aa7 (patch)
tree9bddb9b91e92a8de565e30dfe6ba12685a1ad751 /src
parent4d4b2a1b40e1f0b5f669f05cfa22beaeb4f4c2f9 (diff)
downloadnginx-3e751480b2deaa171e319da5f068eb22389a7aa7.tar.gz
nginx-3e751480b2deaa171e319da5f068eb22389a7aa7.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_upstream.c1
1 files changed, 1 insertions, 0 deletions
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;
}