From owner-freebsd-hackers Sun Jan 26 17:48: 9 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D879137B401; Sun, 26 Jan 2003 17:48:07 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63F2E43F13; Sun, 26 Jan 2003 17:48:07 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0261.cvx21-bradley.dialup.earthlink.net ([209.179.193.6] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18cyNa-0005Nx-00; Sun, 26 Jan 2003 17:48:07 -0800 Message-ID: <3E348F84.2546A320@mindspring.com> Date: Sun, 26 Jan 2003 17:46:44 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Robert Watson Cc: Sam Tannous , freebsd-hackers@freebsd.org Subject: Re: max simultaneous TCP connections (32,763)? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4b604f27772e3c635fefc85f0000696c32601a10902912494350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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