Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Aug 1998 20:51:04 -0400 (EDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        Alex <garbanzo@hooked.net>
Cc:        current <current@FreeBSD.ORG>
Subject:   listen() and SOMAXCONN?
Message-ID:  <199808030051.UAA21748@khavrinen.lcs.mit.edu>
In-Reply-To: <Pine.BSF.4.00.9807291645080.1022-100000@zippy.dyn.ml.org>
References:  <Pine.BSF.4.00.9807291645080.1022-100000@zippy.dyn.ml.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Wed, 29 Jul 1998 16:47:18 -0700 (PDT), Alex <garbanzo@hooked.net> said:

> defined in sys/socket.h.  A quick check of the man page informs me that I
> should use the MIB kern.somaxconn.  Well, I checked the header files, and
> SOMAXCONN is defined to 128 in sys/socket.h, and there is no
> kern.somaxconn MIB.  Any thoughts?

Under FreeBSD, you should use -1.  The MIB variable is in the kern.ipc
subtree.  For portability, you should be prepared to use SOMAXCONN on
other systems.  (It's easy to imagine an autoconf test which would
determine whether -1 works or not, or you could just do it at run
time.)

-GAWollman

--
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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