net/http: add ShutdownGracePeriod to Server#77232
net/http: add ShutdownGracePeriod to Server#77232amyssnippet wants to merge 1 commit intogolang:masterfrom
Conversation
Add ShutdownGracePeriod field to http.Server to configure the grace period for HTTP/2 graceful shutdown. When non-zero, this allows clients time to send in-flight requests before the server closes HTTP/2 connections, preventing unnecessary retries. This implements the grace period mechanism described in RFC 7540 Section 6.8 for HTTP/2 graceful shutdown. Fixes golang#77229
|
This PR (HEAD: 702a086) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/737360. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/737360. |
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/737360. |
|
Message from Amol Yadav: Patch Set 1: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/737360. |
|
Message from Amol Yadav: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/737360. |
This change adds a new
ShutdownGracePeriodfield tonet/http.Serverto support HTTP/2 graceful shutdown as proposed in issue #77229.Changes
ShutdownGracePeriod time.Durationfield to theServerstructTestServerShutdownGracePeriodto verify field behaviorBehavior
Implementation Notes
golang.org/x/net/http2will need to be updated to utilize this fieldFixes #77229