-
Notifications
You must be signed in to change notification settings - Fork 608
unix: the error should not be overridden by anyToSockaddr #253
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
base: master
Are you sure you want to change the base?
Conversation
|
This PR (HEAD: cdbb806) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/sys/+/685216. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/685216. |
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/685216. |
otherwise, the length of the data will return as -1 Signed-off-by: Asutorufa <[email protected]>
|
This PR (HEAD: 1aa520d) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/sys/+/685216. Important tips:
|
The error should not be overridden by anyToSockaddr. Otherwise, the
length of the data will return as -1
Upon successful completion, recvmsg() shall return the length of the
message in bytes. If no messages are available to be received and
the peer has performed an orderly shutdown, recvmsg() shall return
0. Otherwise, -1 shall be returned and
https://man7.org/linux/man-pages/man3/errno.3.html set to indicate
the error.