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

Add support for tcp keepalive through socket2 #981

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sosthene-nitrokey
Copy link
Contributor

@sosthene-nitrokey sosthene-nitrokey commented Feb 3, 2025

Not fully implemented, probably should be using a custom structure for TcpKeepalive to avoid exposing socket2 publicly.

In that case, should we have the same feature flag as the socket2 library? Or should we allow each setting and just warn when one is not available for the given platform ?

Fixes #547

Not fully implemented, probably should be using a custom
structure for `TcpKeepalive` to avoid exposing `socket2` publicly.

In that case, should we have the same feature flag as the `socket2` library?
Or should we allow each setting and just warn when one is not available for the
given platform ?
@algesten
Copy link
Owner

algesten commented Feb 3, 2025

Are there other things we might want to tweak using socket2? The only thing I'm hesitating about is the name of the keepalive since we might want one more generic tcp-extra or something.

If this lands in std::net eventually, we can make the feature flags a no-op, but it'd be nice to not have many many flags in that case.

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.

Add TCP keep-alive?
2 participants