Mercurial > hg > nginx
changeset 7695:d57f15922ca3
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 10 Aug 2020 18:52:20 +0300 |
parents | 09fb2135a589 |
children | 45764bca69b0 |
files | src/http/v2/ngx_http_v2.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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_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; }