changeset 7313:e45f09198dab

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.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 12 Jul 2018 12:50:20 +0300
parents 54683f650cbd
children 3dfc1584ad75
files src/http/ngx_http_request.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
         }