-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Description
This is a feature request which follows #4674.
HTTP/2 server only supports graceful shutdown when integrated with the standard
library's HTTP Server: https://github.com/golang/net/blob/62affa334b73ec65ed44a326519ac12c421905e3/http2/server.go#L199
We have a use case where HTTP/2 server is used as a stand-alone server with ALTS instead of TLS as the security layer (https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security?hl=en). It seems impossible to use the graceful shutdown feature currently even if we are willing to start a HTTP server (I could be wrong. Any idea will be very welcome!).
I think making the related functions public can easily fix the issue.
There is also some discussion around generalizing the graceful shutdown in #4674 (comment) .