Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Nov 2007 19:17:25 +0100
From:      Jan Srzednicki <w@wrzask.pl>
To:        freebsd-net@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: connect() returns EADDRINUSE during massive host->host conn rate
Message-ID:  <20071128181725.GP2045@oak.pl>
In-Reply-To: <20071127135320.GJ2045@oak.pl>
References:  <20071127135320.GJ2045@oak.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 27, 2007 at 02:53:20PM +0100, Jan Srzednicki wrote:
> Hello,
> 
> setting up the relevant fields, setting SO_REUSEADDR and SO_KEEPALIVE,
> setting O_NONBLOCK on the descriptor. No bind(2) is performed. The
> connection is initiated from inside a jail (not sure if that implies a
> internal bind(2) to the jail's address). There are no connections from
> the other host to the first one.

And some additional info: subsequent connect()s on the same keep
returning EADDRINUSE as well. In order to establish a connection, the
application must create a brand new socket and then retry connect().

-- 
  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?20071128181725.GP2045>