mirror of
https://github.com/nginx/nginx.git
synced 2025-08-05 22:26:15 +08:00
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:
parent
5c2dd3913a
commit
ab5401d204
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user