From: Ruslan Ermilov Date: Thu, 12 Jul 2018 09:50:20 +0000 (+0300) Subject: Allow resetting connections closed by "return 444" (ticket #905). X-Git-Tag: release-1.15.2~11 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=527cac297952f802b834704a74436a4fa55c3957;p=nginx.git 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 0432c91b2..f302e561e 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -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; }