From owner-freebsd-hackers Fri Jun 20 15:15:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA28084 for hackers-outgoing; Fri, 20 Jun 1997 15:15:40 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.50]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id PAA28077 for ; Fri, 20 Jun 1997 15:15:36 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id PAA24655; Fri, 20 Jun 1997 15:04:54 -0700 From: Terry Lambert Message-Id: <199706202204.PAA24655@phaeton.artisoft.com> Subject: Re: Suggested changed to sys/socket.h To: dg@root.com Date: Fri, 20 Jun 1997 15:04:53 -0700 (MST) Cc: joe@pavilion.net, hackers@FreeBSD.ORG In-Reply-To: <199706201208.FAA13012@implode.root.com> from "David Greenman" at Jun 20, 97 05:08:53 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > >Is there any reason why /usr/src/sys/sys/socket.h > >shouldn't be changed like this: > > > >*** socket.h Fri Aug 30 03:18:24 1996 > >--- socket-new.h Fri Jun 20 10:55:14 1997 > >*************** > >*** 249,255 **** > >--- 249,257 ---- > > /* > > * Maximum queue length specifiable by listen. > > */ > >+ #ifndef SOMAXCONN > > #define SOMAXCONN 128 > >+ #endif /*!SOMAXCONN*/ > > Yes; you can also set it with the sysctl variable kern.somaxconn. The > value in socket.h is only a default - the best way to tune this is in your > /etc/rc.local. Not to mention that you might include socket.h otherwise, and not have the kernel config gile definition in scope at the time. Really, the value should be statrtup initialized and caches from sysctl instead of hard-coded in user programs. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.