Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
socket: don't truncate a datagram in recv/recvfrom
We set MSG_TRUNC for recv / recvfrom calls to receive the real length of the datagram. When the datagram length is larger then the buffer size we set the EMSGSIZE errno, but still return `from` table (in case of recvfrom). Fixes #3619.
- Loading branch information
1 parent
9ae7b81
commit ba4dce6
Showing
4 changed files
with
95 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters