Skip to content
Snippets Groups Projects
Commit 518a09ef authored by David S. Miller's avatar David S. Miller
Browse files

tcp: Fix recvmsg MSG_PEEK influence of blocking behavior.


Vito Caputo noticed that tcp_recvmsg() returns immediately from
partial reads when MSG_PEEK is used.  In particular, this means that
SO_RCVLOWAT is not respected.

Simply remove the test.  And this matches the behavior of several
other systems, including BSD.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent efb9a8c2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment