This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Maximum number of TCP connections
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: llandre <r&d at wawnet dot biz>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 24 Oct 2002 12:07:58 +0200
- Subject: Re: [ECOS] Maximum number of TCP connections
- References: <5.1.1.6.0.20021024115814.00a62200@dns.struinfo.it>
On Thu, Oct 24, 2002 at 12:01:10PM +0200, llandre wrote:
> I did not understand if it is possibile and how to set the maximum number
> of TCP connections acceptable by the stack.
> From this point of view, are there differences between the two stacks
> (OpenBSD and FreeBSD)?
Each socket needs a file descriptor. There are two things you need to
configure:
CYGPKG_IO_NFILE
CYGNUM_FILEIO_NFD
By default these are 16, so you have a maximum of 16 open sockets and
files.
Both stacks come from the Unix world, so the stacks themselves should
have no practical limit. Memory is probably you limitation.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss