lkml.org 
[lkml]   [2004]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: SO_RCVLOWAT option to socket()
From
Date
On Gwe, 2004-12-10 at 04:06, Rob Sanders wrote:
> Hey y'all,
> Can anyone point me to a resource for why SO_RCVLOWAT is hardcoded
> to 1 in linux?

The 1003.1g drafts require it is supported.

> If you are using select or poll with timeouts it would be less costly
> to have the kernel tell you
> when all of the data you reqested (via SO_RCVLOWAT) is ready to be read

But is the cost of all those special case checks and all the handling
for
it such as select computing if enough tcp packets together accumulated
worth
the cost on every app not using LOWAT for the microscopic gain given
that
essentially nobody uses it.

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.026 / U:0.620 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site