From owner-freebsd-stable@FreeBSD.ORG Fri Nov 30 09:36:30 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 132E016A417; Fri, 30 Nov 2007 09:36:30 +0000 (UTC) (envelope-from w@wrzask.pl) Received: from mx.oak.pl (mx.oak.pl [217.96.108.251]) by mx1.freebsd.org (Postfix) with ESMTP id 933B613C457; Fri, 30 Nov 2007 09:36:29 +0000 (UTC) (envelope-from w@wrzask.pl) Received: by oak.pl (Postfix, from userid 1002) id 72A3F1CCD9; Fri, 30 Nov 2007 10:36:28 +0100 (CET) Date: Fri, 30 Nov 2007 10:36:28 +0100 From: Jan Srzednicki To: Julian Elischer Message-ID: <20071130093628.GS2045@oak.pl> References: <20071127135320.GJ2045@oak.pl> <474DB1D0.3010100@elischer.org> <20071128183001.GQ2045@oak.pl> <474DB6B3.1020202@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <474DB6B3.1020202@elischer.org> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-net@freebsd.org, freebsd-stable@freebsd.org Subject: Re: connect() returns EADDRINUSE during massive host->host conn rate X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2007 09:36:30 -0000 On Wed, Nov 28, 2007 at 10:42:59AM -0800, Julian Elischer wrote: > Jan Srzednicki wrote: >> On Wed, Nov 28, 2007 at 10:22:08AM -0800, Julian Elischer wrote: >> How can I get any usable information from netstat? It shows a bunch of >> connections, of course, but since connect(2) failed, I have no idea what >> local port I was trying to use. > but you can get an idea of the local socket distribution, and what state > all the sockets are in (TIME_WAIT etc). Most of the relevant sockets (that is, between the two host mentioned) are in the ESTABLISHED state (200-400 of those). Only 20-40 are in TIME_WAIT state (these tend to be from a more ephemeric POP3 service). Most of the EADDRINUSE happen for the IMAP4 service. -- Jan Srzednicki :: http://wrzask.pl/ "Remember, remember, the fifth of November" -- V for Vendetta