From owner-freebsd-hackers Fri Jun 20 05:07:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA28877 for hackers-outgoing; Fri, 20 Jun 1997 05:07:07 -0700 (PDT) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA28871 for ; Fri, 20 Jun 1997 05:07:04 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with SMTP id FAA13012; Fri, 20 Jun 1997 05:08:54 -0700 (PDT) Message-Id: <199706201208.FAA13012@implode.root.com> X-Authentication-Warning: implode.root.com: localhost [127.0.0.1] didn't use HELO protocol To: Josef Karthauser cc: hackers@FreeBSD.ORG Subject: Re: Suggested changed to sys/socket.h In-reply-to: Your message of "Fri, 20 Jun 1997 10:57:19 BST." <19970620105719.59968@pavilion.net> From: David Greenman Reply-To: dg@root.com Date: Fri, 20 Jun 1997 05:08:53 -0700 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >I've been playing around with redefining SOMAXCONN in >my kernel configuration file. It doesn't half make >a lot of noise at compile time. > >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. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project