mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 21:52:41 +08:00
cancel keep-alive and lingering close on EOF
This commit is contained in:
parent
fe8137af4b
commit
db7b126db2
@ -1712,6 +1712,11 @@ ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (r->connection->read->eof) {
|
||||||
|
ngx_http_close_request(r, 0);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
|
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
|
||||||
|
|
||||||
if (!ngx_terminate
|
if (!ngx_terminate
|
||||||
|
Loading…
Reference in New Issue
Block a user