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

chore: cleanup Socket.shutdown #195

Merged

Conversation

FrankReh
Copy link
Collaborator

@FrankReh FrankReh commented Dec 3, 2022

Use the convenient socket2::SockRef::from to get a socket reference which can then be shutdown.

Add doc to the Socket.set_nodelay as it is pub. Maybe the Socket is itself made pub someday. This just keeps the shutdown and set_nodelay code in sync.

Use the convenient socket2::SockRef::from to get a socket reference
which can then be shutdown.

Add doc to the Socket.set_nodelay as it is pub. Maybe the Socket is
itself made pub someday. This just keeps the shutdown and set_nodelay
code in sync.
@FrankReh FrankReh requested a review from Noah-Kennedy December 3, 2022 22:53
@FrankReh FrankReh merged commit 3b2174e into tokio-rs:master Dec 3, 2022
@FrankReh FrankReh deleted the frankreh/cleanup-socket-shutdown branch December 3, 2022 23:12
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