Add HTTP/2 keep-alive PING policy.#606
Conversation
|
@arturobernalg The change-set will likely need some work, but I am conceptually fine with it. @rschmitt Would you have any conceptual objections to the idea? |
0d9a332 to
a80a98d
Compare
Emit PINGs on otherwise idle connections once SETTINGS are ACKed, and close the session if the peer does not ACK within the configured timeout.
a80a98d to
6224ba5
Compare
This sounds way better than the current HTTP/2 implementation of |
|
I think we have too many config knobs already. I'd really prefer to expose this through |
|
keep-alive is now driven via setValidateAfterInactivity (no new H2Config knob), so it fits the existing connection validation API. |
This introduces an HTTP/2 keep-alive PING policy for long-lived idle connections. When enabled, the client sends PING frames once the SETTINGS handshake is complete and no streams are active, and fails the session if the peer does not respond with PING[ACK] within the configured timeout. Integration tests validate that the connection remains usable past idle with keep-alive enabled and closes on inactivity when disabled.