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
This commit is contained in:
Igor Sysoev 2009-09-08 11:37:50 +00:00
parent 7aecf9eb35
commit 2cb1f9c44c

View 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;
}