-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
net: introduce split on UnixDatagram #2557
Conversation
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.
I only had a quick look, but three things came to mind:
- What about a by-ref split like in
TcpStream
? - What about naming?
TcpStream
calls its owned splitinto_split
. - The owned tcp split closes the stream when the writer is dropped. Should we also do that here?
We currently have different naming conventions on split
/into_split
that we can't fix until v0.3 due to backwards compatibility. Still doesn't hurt to choose what we intend to converge on in v0.3 here.
See also the PR for owned split on TCP streams: #2270.
thanks for reviewing this pr. keep consistent with Is it necessary to add |
The issue with |
it's ok to fix |
activate |
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.
This looks reasonable at a first glance.
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.
Thanks 👍
fix issue #2551
this pr can be closed if this is merged. #1757