aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2016-07-19 20:22:44 +0300
committerValentin Bartenev <vbart@nginx.com>2016-07-19 20:22:44 +0300
commitab5401d204f9cd638204dcabf45152e32920d021 (patch)
treee909abf60136f2fe71e2df748b6034db395a0c89 /src
parent5c2dd3913aad5c4bf7d9056e1336025c2703586b (diff)
downloadnginx-ab5401d204f9cd638204dcabf45152e32920d021.tar.gz
nginx-ab5401d204f9cd638204dcabf45152e32920d021.zip
HTTP/2: always send GOAWAY while worker is shutting down.
Previously, if the worker process exited, GOAWAY was sent to connections in idle state, but connections with active streams were closed without GOAWAY.
Diffstat (limited to 'src')
-rw-r--r--src/http/v2/ngx_http_v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c
index 19e5f3a09..7e4736b60 100644
--- a/src/http/v2/ngx_http_v2.c
+++ b/src/http/v2/ngx_http_v2.c
@@ -615,7 +615,7 @@ ngx_http_v2_handle_connection(ngx_http_v2_connection_t *h2c)
}
if (ngx_terminate || ngx_exiting) {
- ngx_http_close_connection(c);
+ ngx_http_v2_finalize_connection(h2c, NGX_HTTP_V2_NO_ERROR);
return;
}