mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user