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

Adopt Mio's TCP keepalive API #148

Merged
merged 2 commits into from
Dec 19, 2020

Conversation

Thomasdezeeuw
Copy link
Collaborator

@Thomasdezeeuw Thomasdezeeuw commented Dec 18, 2020

Originally implemented by @hawkw here in
tokio-rs/mio#1385.

Closed #126, #79.
Fixes #24.

Originally implemented by @hawkw here in
tokio-rs/mio#1385.

Closed rust-lang#79.
Fixes rust-lang#24.
@hawkw
Copy link

hawkw commented Dec 18, 2020

yay! ❤️

The documentation says it uses a BOOL (alias for c_int), but in practice
this is not true. We've also see this for TCP_NODELAY so we'll reuse the
same type alias.
@Thomasdezeeuw Thomasdezeeuw marked this pull request as ready for review December 19, 2020 12:06
@Thomasdezeeuw Thomasdezeeuw merged commit c1cab52 into rust-lang:master Dec 19, 2020
@Thomasdezeeuw Thomasdezeeuw deleted the issue_126-tcp_keepalive branch December 19, 2020 12:06
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.

Use Mio's keepalive API Socket::keepalive doesn't work on Windows
2 participants