[nginx] Allow resetting connections closed by "return 444" (ticket #905).

Ruslan Ermilov ru at nginx.com
Thu Jul 12 09:50:54 UTC 2018


details:   http://hg.nginx.org/nginx/rev/e45f09198dab
branches:  
changeset: 7313:e45f09198dab
user:      Ruslan Ermilov <ru at nginx.com>
date:      Thu Jul 12 12:50:20 2018 +0300
description:
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.

diffstat:

 src/http/ngx_http_request.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 54683f650cbd -r e45f09198dab src/http/ngx_http_request.c
--- a/src/http/ngx_http_request.c	Thu Jul 05 22:21:14 2018 +0300
+++ b/src/http/ngx_http_request.c	Thu Jul 12 12:50:20 2018 +0300
@@ -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;
         }


More information about the nginx-devel mailing list