Welcome! Log In Create A New Profile

Advanced

[nginx] HTTP/2: fixed c->timedout flag on timed out connections.

Maxim Dounin
August 10, 2020 11:56AM
details: https://hg.nginx.org/nginx/rev/d57f15922ca3
branches:
changeset: 7695:d57f15922ca3
user: Maxim Dounin <mdounin@mdounin.ru>
date: Mon Aug 10 18:52:20 2020 +0300
description:
HTTP/2: fixed c->timedout flag on timed out connections.

Without the flag, SSL shutdown is attempted on such connections,
resulting in useless work and/or bogus "SSL_shutdown() failed
(SSL: ... bad write retry)" critical log messages if there are
blocked writes.

diffstat:

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

diffs (11 lines):

diff -r 09fb2135a589 -r d57f15922ca3 src/http/v2/ngx_http_v2.c
--- a/src/http/v2/ngx_http_v2.c Mon Aug 10 18:52:09 2020 +0300
+++ b/src/http/v2/ngx_http_v2.c Mon Aug 10 18:52:20 2020 +0300
@@ -475,6 +475,7 @@ ngx_http_v2_write_handler(ngx_event_t *w
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0,
"http2 write event timed out");
c->error = 1;
+ c->timedout = 1;
ngx_http_v2_finalize_connection(h2c, 0);
return;
}
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] HTTP/2: fixed c->timedout flag on timed out connections.

Maxim Dounin 247 August 10, 2020 11:56AM



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

Online Users

Guests: 181
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