summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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;