diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index c2e18b64c..96286597b 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -1834,9 +1834,7 @@ closed: ngx_log_error(NGX_LOG_INFO, c->log, err, "client closed prematurely connection"); - ngx_http_close_request(r, 0); - - return; + ngx_http_finalize_request(r, 0); }