]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
tcp: Fix recvmsg MSG_PEEK influence of blocking behavior.
authorDavid S. Miller <davem@davemloft.net>
Wed, 5 Nov 2008 11:36:01 +0000 (03:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Nov 2008 11:36:01 +0000 (03:36 -0800)
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: David S. Miller <davem@davemloft.net>

No differences found