Subject: Re: New sysctl "net.listen_backlog"?
To: Todd Vierling <>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: tech-net
Date: 09/14/1998 18:08:02
Before it confuses anyone else, cgd points out i transposed a
MAX and a MIN:

>       MAX(somxaconn, MIN(sominconn, 128))
should be

>       MIN(somxaconn, MAX(sominconn, 128))

hope that didn't confuse anyone.

>Hum, that's not necessary; if an admin sets the limit too high, you get what
>you asked for.  The sysctl will require uid 0 to change, of course.  ;)

Uh, no, the point here is the sysadmin who _didn't_ set a limit via
sysctl. Or for someone who starts a daemon from single-user.  

We need a sane upper bound at all times, and INT_MAX isn't a sane as a
_default_ upper bound.

>Actually, UINT_MAX is wrong, though.  It should be INT_MAX as negatives are
>a special case (and the arg is `int' anyway).
Sure, my bad. s/UINT_MAX/INT_MAX/g everywhere. I think I copied it
from someone else, though :) I even made the point about negatives
with Matt's code, too... "time for food".