Welcome! Log In Create A New Profile

Advanced

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

July 12, 2018 05:52AM
details: http://hg.nginx.org/nginx/rev/e45f09198dab
branches:
changeset: 7313:e45f09198dab
user: Ruslan Ermilov <ru@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;
}
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

ru@nginx.com 836 July 12, 2018 05:52AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 248
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready