# HG changeset patch # User Valentin Bartenev # Date 1468948964 -10800 # Node ID ee43fa9aff66a7db04f0640616f21f9e80b2d176 # Parent de636b710cb178ea98005c1add43a8959e7acc1a 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. diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c --- 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_v } if (ngx_terminate || ngx_exiting) { - ngx_http_close_connection(c); + ngx_http_v2_finalize_connection(h2c, NGX_HTTP_V2_NO_ERROR); return; }