comparison src/http/v2/ngx_http_v2.c @ 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 c5840ca2063d
children da5e3f5b1673
comparison
equal deleted inserted replaced
7694:09fb2135a589 7695:d57f15922ca3
473 473
474 if (wev->timedout) { 474 if (wev->timedout) {
475 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, 475 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0,
476 "http2 write event timed out"); 476 "http2 write event timed out");
477 c->error = 1; 477 c->error = 1;
478 c->timedout = 1;
478 ngx_http_v2_finalize_connection(h2c, 0); 479 ngx_http_v2_finalize_connection(h2c, 0);
479 return; 480 return;
480 } 481 }
481 482
482 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http2 write handler"); 483 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http2 write handler");