Date: Fri, 20 Jun 1997 15:04:53 -0700 (MST) From: Terry Lambert <terry@lambert.org> To: dg@root.com Cc: joe@pavilion.net, hackers@FreeBSD.ORG Subject: Re: Suggested changed to sys/socket.h Message-ID: <199706202204.PAA24655@phaeton.artisoft.com> In-Reply-To: <199706201208.FAA13012@implode.root.com> from "David Greenman" at Jun 20, 97 05:08:53 am
next in thread | previous in thread | raw e-mail | index | archive | help
> >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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706202204.PAA24655>