aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2020-08-10 18:52:20 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2020-08-10 18:52:20 +0300
commit1d696cd37947ef816bde4d54d7b6f97374f1151d (patch)
treee60ba38f2fad51ac354a79491cfb3d107c5fd36e
parente01cdfbd8c1b757eaadad059cb7c9b9313e715a6 (diff)
downloadnginx-1d696cd37947ef816bde4d54d7b6f97374f1151d.tar.gz
nginx-1d696cd37947ef816bde4d54d7b6f97374f1151d.zip
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.
-rw-r--r--src/http/v2/ngx_http_v2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c
index ec553ecfe..51c8b0a71 100644
--- a/src/http/v2/ngx_http_v2.c
+++ b/src/http/v2/ngx_http_v2.c
@@ -475,6 +475,7 @@ ngx_http_v2_write_handler(ngx_event_t *wev)
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;
}