Skip to content

h2c: Enable health checking for connections if they are idle - #181

Merged
suhailpatel merged 1 commit into
masterfrom
http2-keepalive-fixes
Aug 10, 2026
Merged

suhailpatel merged 1 commit into
masterfrom
http2-keepalive-fixes

Conversation

@suhailpatel

@suhailpatel suhailpatel commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

We don't have any health checking configured, so if there is a dead connection, we keep it around until the request fails due to hitting the context deadline

This PR adds the ReadIdleTimeout which enables the health checking, if there is no frames within 30s, we will send a ping and wait 10s for a response, closing the connection if we don't get anything

We don't have any health checking configured, so if there is a dead
connection, we keep it around until the request fails due to hitting the
context deadline

This PR adds the ReadIdleTimeout which enables the health checking,
waiting up to 30s for an idle connection to respond to a ping before
closing it and eviciting it
@suhailpatel suhailpatel self-assigned this Aug 7, 2026
@suhailpatel
suhailpatel merged commit 741b330 into master Aug 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants