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.
This commit is contained in:
Valentin Bartenev 2016-07-19 20:22:44 +03:00
parent 5c2dd3913a
commit ab5401d204

View File

@ -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;
}