Subject: Re: New sysctl "net.listen_backlog"?
To: Matt Thomas <matt@3am-software.com>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: tech-net
Date: 09/14/1998 17:35:00
>FWIW, Digital UNIX has two knobs: somaxconn and sominconn
>
>real_backlog = MIN(somaxconn, MAX(sominconn, backlog));
>
>This allows you fix stupid applications that use SOMAXCONN by
>overriding it but also limiting the maximum backlog to a sane
>value.
>
>You could default them to 1024 and 0 and allow them to be 
>tweaked by sysctl.

DING!  Sold.

Um.  Do we want to keep the the special semantics of a back-log
of <= zero, though? Like:

	if (backlog <= 0)
		real_backlog = 0;
	else
		real_backlog = MIN(somaxconn, MAX(sominconn, backlog));

	....