# HG changeset patch # User Ruslan Ermilov # Date 1531389020 -10800 # Node ID e45f09198dabcf39e1c991e2aec76066ab7a33ac # Parent 54683f650cbdcd73f7f8d845c843295978da5a85 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. diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -2353,6 +2353,7 @@ ngx_http_finalize_request(ngx_http_reque || rc == NGX_HTTP_NO_CONTENT) { if (rc == NGX_HTTP_CLOSE) { + c->timedout = 1; ngx_http_terminate_request(r, rc); return; }