Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 2003 17:46:44 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Robert Watson <rwatson@freebsd.org>
Cc:        Sam Tannous <stannous@employees.org>, freebsd-hackers@freebsd.org
Subject:   Re: max simultaneous TCP connections (32,763)?
Message-ID:  <3E348F84.2546A320@mindspring.com>
References:  <Pine.NEB.3.96L.1030126163650.24134L-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Robert Watson wrote:
> Some of this has to do with limits on the available ancillary ports for
> out-going connections.  Try adding additional IP addresses to the client
> machine, and forcing your client software to use specific IP addresses.

[ ... ]

> Hard-coding local addreses in your
> application overrides that.  I've never tried this (i.e., using multiple
> IPs to get around the TCP/IP limit), so if it doesn't work, let me know.
> In theory, it should.

In fact, though, it doesn't, because inpcb_alloc sucks, and no one
was willing to check in my proposed fix (see -current list archives).

This will not help on FreeBSD, which assumes bound address ports
are allocated out of the INADDR_ANY address (unbound) ports list.
You have to do extra work.  There are 3 "if" tests you have to
work around; binding to a local IP before the connect only works
around one of these.

-- Terry

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E348F84.2546A320>