-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 methods to TCP and UDP sockets to modify hop limit (refresh of #94678) #138744
base: master
Are you sure you want to change the base?
Conversation
r? @ibraheemdev rustbot has assigned @ibraheemdev. Use |
r? libs-api because it's been a while since the original PR was approved. |
library/std/src/net/tcp.rs
Outdated
/// .expect("Couldn't connect to the server..."); | ||
/// stream.set_hop_limit_v6(88).expect("set_hop_limit_v6 call failed"); | ||
/// ``` | ||
#[unstable(feature = "ipv6_hop_limit", issue = "47727")] |
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.
Please file a new dedicated tracking issue.
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.
Done in #139166.
The issue number has been updated accordingly in the code.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: David Tolnay <dtolnay@gmail.com>
7f790e2
to
9c1ee90
Compare
#94678 was closed because of time constraints of the original author (@kckeiks).
This PR is a refresh of #94678 where the original proposed changes are ported to the current status of the standard library.
In addition, this PR:
set_multicast_hop_limit_v6
andmulticast_hop_limit_v6
only for UDP sockets and not for TCP sockets as originally proposedIssue: #139166