aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2019-09-23 15:45:36 +0300
committerRuslan Ermilov <ru@nginx.com>2019-09-23 15:45:36 +0300
commit6052881a987fc5cd39c8666a9b39ddfeadc895ee (patch)
treea8434aff694a41a731ea5367d90d4caffbc1c9ca
parentf878492af35224a4ade84f6f6c15aca2892d3821 (diff)
downloadnginx-6052881a987fc5cd39c8666a9b39ddfeadc895ee.tar.gz
nginx-6052881a987fc5cd39c8666a9b39ddfeadc895ee.zip
HTTP/2: fixed worker_shutdown_timeout.
-rw-r--r--src/http/v2/ngx_http_v2.c5
1 files changed, 5 insertions, 0 deletions
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;