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

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2 Aug 1998, Garrett Wollman wrote:

> <<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.)

Ahh, quite nifty indeed.  Thanks :)

- alex

| "Contrary to popular belief, penguins are not the salvation of modern  |
| technology.  Neither do they throw parties for the urban proletariat." |
| Powered by FreeBSD                            http://www.freebsd.org/  |


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?Pine.BSF.4.00.9808021757220.230-100000>