lkml.org 
[lkml]   [1996]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: SO_SNDBUF makes select() hang


On Sat, 27 Jul 1996, Alan Cox wrote:
>
> > Hm, while playing with setting SO_SNDBUF through setsockopt() I noticed
> > this behavior: if SO_SNDBUF is set low (I was trying 128) then select()
> > won't ever show the socket as available for writing.
>
> We handle our send/receive buffers as including header sizes (ie sk_buff
> struct overhead) and the like. That means setting ultra low values won't
> work nicely for all sorts of pathalogical cases.

It's fixed anyway in 2.0.10 - the TCP stuff has changed how the
SNDBUF/RCVBUF stuff works anyway, and I just made select() use the same
check as the sendmsg() routine does for sleeping..

Linus


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.385 / U:0.256 seconds]
©2003-2014 Jasper Spaans. Advertise on this site