-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/net/http2: configurable server pings #67812
Comments
This proposal has been added to the active column of the proposals project |
Have all remaining concerns about this proposal been addressed? The proposal is to add two new fields to http2.Server:
|
Based on the discussion above, this proposal seems like a likely accept. The proposal is to add two new fields to http2.Server:
|
No change in consensus, so accepted. 🎉 The proposal is to add two new fields to http2.Server:
|
Change https://go.dev/cl/601497 mentions this issue: |
This is really a nice addition that will help to improve reliability of systems using http2 |
This issue is part of a project to move x/net/http2 into std: #67810
A HTTP/2 client or server may send PING frames to its peer. (RFC 9113 Section 6.7)
The http2.ReadIdleTimeout and http2.PingTimeout fields configure an HTTP/2 client to send a PING when a connection has been idle for some amount of time, and to close the connection if no response is received.
The http2.Server does not support sending PINGs on idle connections.
I propose adding the ability to configure servers to send pings as well. This setting will be off by default.
Adding this feature removes an inconsistency between HTTP/2 client and server configurations. Aligning the two will make it easier to add support for configuring HTTP/2 features to net/http, since we can define a single configuration struct rather than separate ones for clients and servers.
The text was updated successfully, but these errors were encountered: