Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jun 1997 05:08:53 -0700
From:      David Greenman <dg@root.com>
To:        Josef Karthauser <joe@pavilion.net>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Suggested changed to sys/socket.h 
Message-ID:  <199706201208.FAA13012@implode.root.com>
In-Reply-To: Your message of "Fri, 20 Jun 1997 10:57:19 BST." <19970620105719.59968@pavilion.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706201208.FAA13012>