Skip to content
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

Enable TCP keep-alive on all sockets by default #8927

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

ReubenBond
Copy link
Member

@ReubenBond ReubenBond commented Mar 27, 2024

This PR adds support for enabling TCP keep-alive on all sockets and enables it by default with a relatively aggressive 90s idle period before the first keep-alive probe is sent, 30s between retries, and 10 unacknowledged retries before a connection is declared dead.

The value of 90s was chosen because Orleans generally establishes relatively few sockets (under a few hundred per host for a large cluster) and some routers aggressively prune connections after a couple of minutes.

Microsoft Reviewers: Open in CodeFlow

@ReubenBond ReubenBond added the Needs: backport PRs which should be backported to a (prior) release branch label Mar 27, 2024
@benjaminpetit benjaminpetit merged commit 760a4cd into dotnet:main Mar 28, 2024
20 checks passed
@ReubenBond ReubenBond deleted the fix/socket-keepalive branch March 28, 2024 16:54
@github-actions github-actions bot locked and limited conversation to collaborators May 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs: backport PRs which should be backported to a (prior) release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants