Subject: Re: New sysctl "net.listen_backlog"?
To: Jonathan Stone <jonathan@DSG.Stanford.EDU>
From: Todd Vierling <>
List: tech-net
Date: 09/14/1998 20:51:30
On Mon, 14 Sep 1998, Jonathan Stone wrote:

: >> (This will become the value of SOMAXCONN such that programs using the
: >> macro will gain the higher limits without recompiling.)
:                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: >Leave SOMAXCONN at 128, I say.
: But to achieve the underlined part with the extant sockets codebase,
: you need to make SOMAXCONN be UINT_MAX.
: So then we _need_ yet another option, to set the default upper limit
: actually enforced by listen() to something sane.  (where "sane" is
: possibly arch-dependent).   Like the knobs Matt suggested.

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.  ;)

Actually, UINT_MAX is wrong, though.  It should be INT_MAX as negatives are
a special case (and the arg is `int' anyway).

-- Todd Vierling (Personal; Bus.