Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Nov 2007 10:36:28 +0100
From:      Jan Srzednicki <w@wrzask.pl>
To:        Julian Elischer <julian@elischer.org>
Cc:        freebsd-net@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: connect() returns EADDRINUSE during massive host->host conn rate
Message-ID:  <20071130093628.GS2045@oak.pl>
In-Reply-To: <474DB6B3.1020202@elischer.org>
References:  <20071127135320.GJ2045@oak.pl> <474DB1D0.3010100@elischer.org> <20071128183001.GQ2045@oak.pl> <474DB6B3.1020202@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071130093628.GS2045>