Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Aug 1997 00:59:46 -0700 (PDT)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        rajesha <rajesha@ct-yardley.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: number of socket connections
Message-ID:  <Pine.BSF.3.96.970801005843.11381N-100000@localhost>
In-Reply-To: <199707302056.QAA14341@arthur.ct-yardley.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 30 Jul 1997, rajesha wrote:

> When doing socket programming, what is the maximum socket connections that
> can be made in UNIX in FreeBSD: 128 or 255?  I looked in the sys/socket.h
> header file and it had a define of 'SOMAXCONN' as 128.
> 

This is defined as a kernel sysctl variable 'kern.somaxconn.'  The default
is 128 there.

$ sysctl -a | grep somaxconn
kern.somaxconn: 128


Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major
Spam routed to /dev/null by Procmail    | Death to Cyberpromo




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970801005843.11381N-100000>