]> git.kaiwu.me - nginx.git/commitdiff
HTTP/2: fixed worker_shutdown_timeout.
authorRuslan Ermilov <ru@nginx.com>
Mon, 23 Sep 2019 12:45:36 +0000 (15:45 +0300)
committerRuslan Ermilov <ru@nginx.com>
Mon, 23 Sep 2019 12:45:36 +0000 (15:45 +0300)
src/http/v2/ngx_http_v2.c

index db95bdd99d367f42ba1cbf679da7958c81c2208a..d0e44475c26f3d721f5afdda97476bc4b6cf3cb4 100644 (file)
@@ -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;