Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
native: Do not process ancillary messages upon recvmsg error
Previously, when trying to receive ancillary messages, a failing call to recvmsg (returning -1 with some errno) would still attempt to parse ancillary messages stored in the receive buffer. This would, under some circumstances and relatively sporadically, for example when using nonblocking sockets, return duplicate file descriptors (e.g, see FileDescriptorsTest.testSendRecvFileDescriptorsChannelNonBlocking) Detect the error case and skip parsing of ancillary messages.
- Loading branch information