changeset 7571:ab5cac9d3f00

HTTP/2: fixed worker_shutdown_timeout.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 23 Sep 2019 15:45:36 +0300
parents d6cf51af8a3d
children 1e9bde25d804
files src/http/v2/ngx_http_v2.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 *re
     if (c->close) {
         c->close = 0;
 
+        if (c->error) {
+            ngx_http_v2_finalize_connection(h2c, 0);
+            return;
+        }
+
         if (!h2c->goaway) {
             h2c->goaway = 1;