-
Notifications
You must be signed in to change notification settings - Fork 231
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
Socket::keepalive doesn't work on Windows #24
Comments
Weird, does the ioctl we execute do anything at all? And for posterity I think the relevant test which is the impetus for this is here: |
It fails because the input pointer is invalid. |
I also ran into this issue. When obtaining the keepalive value, an error is returned with the following message:
Unfortunately, I know next to nothing about the winsocks API so I'm not sure how to determine what the root cause is, and how to fix it. |
I did some research, and as far as I can tell, the Microsoft documentation doesn't make any mention of accessing the keepalive values using The closest thing to a definitive answer I could find is this StackOverflow answer (admittedly, not the most reliable source), which states:
Of course, it's still possible to test whether or not keepalive is enabled for a socket on Windows, by using |
Originally implemented by @hawkw here in tokio-rs/mio#1385. Closed rust-lang#79. Fixes rust-lang#24.
Originally implemented by @hawkw here in tokio-rs/mio#1385. Closed #79. Fixes #24.
There is apparently not any way of reading these values.
The text was updated successfully, but these errors were encountered: