mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 09:42:39 +08:00
Allow resetting connections closed by "return 444" (ticket #905).
If reset_timedout_connection is on, TCP connections closed by "return 444" will be reset instead of a normal close.
This commit is contained in:
parent
f62d460d5b
commit
527cac2979
@ -2353,6 +2353,7 @@ ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
|
||||
|| rc == NGX_HTTP_NO_CONTENT)
|
||||
{
|
||||
if (rc == NGX_HTTP_CLOSE) {
|
||||
c->timedout = 1;
|
||||
ngx_http_terminate_request(r, rc);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user