Skip to content

x/net/http2: graceful shutdown support to standalone HTTP/2 server #41418

@soya3129

Description

@soya3129

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) .

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions