mirror of
https://github.com/nginx/nginx.git
synced 2025-06-16 00:21:02 +08:00
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
4d4b2a1b40
commit
3e751480b2
@ -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 New Issue
Block a user