[lkml]   [2008]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Honoring SO_RCVLOWAT in proto_ops.poll methods
On Sun, Oct 05, 2008 at 03:30:59PM -0700, David Miller wrote:
> From:
> Date: Sun, 5 Oct 2008 16:45:57 -0500
> > I will be testing this patch today. At a glance it appears with this
> > patch we're still not taking rcvlowat into consideration in recv()
> > with MSG_PEEK flag set. This should probably also be corrected, as
> > mentioned in the thread previously.
> Yes, I remember you mentioning that.
> I'll look into it.

Looks like the RCVLOWAT patch breaks the tcp poll logic in the normal

I didn't have a chance to scrutinize the changes but with the patch
applied simple things like a telnet to exit immediately
with "Connection closed by foreign host".

In strace of the above telnet failure I see recv() returning EAGAIN
before exiting. Telnet expected a select() to block until data was
available and didn't expect recv() to find nothing available when the
select() reported there was something. Select() was no longer behaving
properly on ipv4 tcp sockets.

Vito Caputo

 \ /
  Last update: 2008-10-06 07:19    [W:0.091 / U:0.844 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site