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

keepalive: allow setting of probe interval & probe count #310

Merged
merged 3 commits into from
Mar 7, 2022

Conversation

fulara
Copy link
Contributor

@fulara fulara commented Feb 17, 2022

Currently the library only allows setting of the keepalive idle time
I think that is driven by the fact the socket2 only exposes this code easily - that is without the all feature flag.

Well, it's kinda odd that they do only that, so I have raised a PR there: rust-lang/socket2#294 but I am not sure if that will be merged and when.

In the meantime we can easily add the support of that into this crate, just by using more roo API.

@fulara fulara force-pushed the keepalive-set-whats-needed branch 2 times, most recently from d0c94d8 to 39cbf2b Compare February 17, 2022 19:40
Now this is ugly.
And it got even uglier because socket2 has those damn `retries` and
`interval` behind `all` feature flag...
@fulara fulara force-pushed the keepalive-set-whats-needed branch 2 times, most recently from 3aea412 to b0f5bea Compare February 17, 2022 21:36
@blackbeam
Copy link
Owner

Thanks. I'll merge it as it is. Windows support may be added as a separate PR.

@blackbeam blackbeam merged commit d1df63f into blackbeam:master Mar 7, 2022
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