unix: the error should not be overridden by anyToSockaddr#253
unix: the error should not be overridden by anyToSockaddr#253Asutorufa wants to merge 1 commit intogolang:masterfrom
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 <16442314+Asutorufa@users.noreply.github.com>
|
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.