Skip to content

Allow clients to set a max age for connections #2235

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

Merged
merged 4 commits into from
May 8, 2025

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented May 8, 2025

Motivation:

Some load balancers reject new streams when a client certificate has expired but allow existing ones to continue. This is problematic because there's no signal that the connection can't be used anymore so new RPCs will continue to fail.

Modifications:

Allow clients to configure a max age for connections, after which time the connection will shutdown gracefully. This allows new connections to be established.

Result:

Client connections can be configured to age out

Motivation:

Some load balancers reject new streams when a client certificate has
expired but allow existing ones to continue. This is problematic because
there's no signal that the connection can't be used anymore so new RPCs
will continue to fail.

Modifications:

Allow clients to configure a max age for connections, after which time
the connection will shutdown gracefully. This allows new connections to
be established.

Result:

Client connections can be configured to age out
@glbrntt glbrntt added the 🆕 semver/minor Adds new public API. label May 8, 2025
@glbrntt glbrntt requested a review from gjcairo May 8, 2025 08:36
@glbrntt glbrntt enabled auto-merge (squash) May 8, 2025 09:57
Copy link
Collaborator

@gjcairo gjcairo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tiny typo.

@glbrntt glbrntt merged commit e481d56 into grpc:release/1.x May 8, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants