From 6052881a987fc5cd39c8666a9b39ddfeadc895ee Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Mon, 23 Sep 2019 15:45:36 +0300 Subject: [PATCH] HTTP/2: fixed worker_shutdown_timeout. --- src/http/v2/ngx_http_v2.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c index db95bdd99..d0e44475c 100644 --- a/src/http/v2/ngx_http_v2.c +++ b/src/http/v2/ngx_http_v2.c @@ -354,6 +354,11 @@ ngx_http_v2_read_handler(ngx_event_t *rev) if (c->close) { c->close = 0; + if (c->error) { + ngx_http_v2_finalize_connection(h2c, 0); + return; + } + if (!h2c->goaway) { h2c->goaway = 1;