mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
cancel keep-alive and lingering close on EOF
This commit is contained in:
parent
fe8137af4b
commit
db7b126db2
1 changed files with 5 additions and 0 deletions
|
|
@ -1712,6 +1712,11 @@ ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
|
|||
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);
|
||||
|
||||
if (!ngx_terminate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue