[nginx] HTTP/2: fixed worker_shutdown_timeout.

Ruslan Ermilov ru at nginx.com
Mon Sep 23 12:46:26 UTC 2019


details:   https://hg.nginx.org/nginx/rev/ab5cac9d3f00
branches:  
changeset: 7571:ab5cac9d3f00
user:      Ruslan Ermilov <ru at nginx.com>
date:      Mon Sep 23 15:45:36 2019 +0300
description:
HTTP/2: fixed worker_shutdown_timeout.

diffstat:

 src/http/v2/ngx_http_v2.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r d6cf51af8a3d -r ab5cac9d3f00 src/http/v2/ngx_http_v2.c
--- a/src/http/v2/ngx_http_v2.c	Mon Sep 23 15:45:32 2019 +0300
+++ b/src/http/v2/ngx_http_v2.c	Mon Sep 23 15:45:36 2019 +0300
@@ -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;
 


More information about the nginx-devel mailing list