connect() returns EADDRINUSE during massive host->host conn rate

Jan Srzednicki w at wrzask.pl
Wed Nov 28 10:17:28 PST 2007


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



More information about the freebsd-stable mailing list