-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Implement RFC 1461 #31945
Implement RFC 1461 #31945
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
Works on Windows now. I ended up backing out the addition of We should probably split the keepalive functionality into two methods to mirror how things work, and possibly move the interval accessor to a unix-only extension trait, but that should be worked out in the net2 crate. |
/// Sets the value for the `IPV6_V6ONLY` option on this socket. | ||
/// | ||
/// If this is set to `true` then the socket is restricted to sending and | ||
/// receiving IPv6 packets only. In this case two IPv4 and IPv6 applications |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case two IPv4 and IPv6 applications can bind the same port at the same time
This sounds somewhat misleading. Wouldn't that be one of each?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Also back out keepalive support for TCP since the API is perhaps not actually what we want. You can't read the interval on Windows, and we should probably separate the functionality of turning keepalive on and overriding the interval.
|
||
t!(stream.set_nonblocking(true)); | ||
t!(stream.set_nonblocking(false)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a read here to make sure it doesn't block?
Thanks @sfackler! 1.8 has been branched, so feel free to r=me with a few nits addressed |
@bors r=alexcrichton |
📌 Commit 631fa2b has been approved by |
⌛ Testing commit 631fa2b with merge f1eccfb... |
💔 Test failed - auto-linux-64-x-android-t |
@bors r=alexcrichton |
📌 Commit c8eb1e2 has been approved by |
⌛ Testing commit c8eb1e2 with merge 01cdce9... |
@bors r=alexcrichton |
📌 Commit ee62aab has been approved by |
⌛ Testing commit ee62aab with merge f7f9d8a... |
💔 Test failed - auto-linux-cross-opt |
@bors r=alexcrichton |
📌 Commit e4aa513 has been approved by |
I have these tagged as stable in 1.9, so this shouldn't merge until the 1.8 beta's cut.
I have these tagged as stable in 1.9, so this shouldn't merge until the 1.8 beta's cut.