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:
parent
7aecf9eb35
commit
2cb1f9c44c
1 changed files with 1 additions and 0 deletions
|
@ -363,6 +363,7 @@ ngx_http_upstream_create(ngx_http_request_t *r)
|
||||||
u = r->upstream;
|
u = r->upstream;
|
||||||
|
|
||||||
if (u && u->cleanup) {
|
if (u && u->cleanup) {
|
||||||
|
r->main->count++;
|
||||||
ngx_http_upstream_cleanup(r);
|
ngx_http_upstream_cleanup(r);
|
||||||
*u->cleanup = NULL;
|
*u->cleanup = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue