commit | 7f62e88e9ffa4a7f6aa7f280738769612733e7e9 | [log] [tgz] |
---|---|---|
author | Ruslan Ermilov <ru@nginx.com> | Thu Jul 12 12:50:20 2018 +0300 |
committer | Ruslan Ermilov <ru@nginx.com> | Thu Jul 12 12:50:20 2018 +0300 |
tree | ebec6c9321c00b3c3f9dcb556d2270a47af518dd | |
parent | 69569235c56c682e77dfe878c464217e3b8e4e50 [diff] |
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 index 0432c91..f302e56 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c
@@ -2353,6 +2353,7 @@ || rc == NGX_HTTP_NO_CONTENT) { if (rc == NGX_HTTP_CLOSE) { + c->timedout = 1; ngx_http_terminate_request(r, rc); return; }