Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Oct 2003 22:24:56 -0600 (CST)
From:      Mike Silbersack <silby@silby.com>
To:        Bruce M Simpson <bms@spc.org>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Changes to PCBPORTHASH wrt TCP, review needed
Message-ID:  <20031031222225.E54781@odysseus.silby.com>
In-Reply-To: <20031028131329.J19707@odysseus.silby.com>
References:  <20031027014854.K2023@odysseus.silby.com> <20031028131329.J19707@odysseus.silby.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Tue, 28 Oct 2003, Mike Silbersack wrote:

> It's very possible that bind will return a port which can't be used
> because it's already in use for that destination lport-laddr-fport-faddr
> tuple, so the connect will fail with EADDRINUSE.
>
> So, it looks like I can't solve this so simply... looks like I'll have to
> have the port lookup do IP comparisons as well.
>
> Mike "Silby" Silbersack

After more thought, I've come to the conclusion that it's not easy to do
away with the lport hash, and that changes would only benefit certain
applications.  So, I've given up on the lport reuse issue and refocused on
the problem of time_wait sockets clogging up all local ports under certain
situations.  I did manage to find a good solution for that problem, and
it'll be committed pretty soon.

Mike "Silby" Silbersack



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