On Thu, Mar 25, 2010 at 3:26 PM, Sai Pullabhotla
<sai.pullabho...@jmethods.com> wrote:
> (1) would always first try to get an unused passive port. If it does,
> everything is good and works the same old way.
> (2) If (1) fails, it would try to get a port that is not shared by the
> same source/client address. If it finds such a port, it would still
> work the old way.
> (3) If (1) and (2) fail to get a port number, a 4xx error is sent to
> the client (may be after a timeout?)

Ignoring the exact details of the current patch... how about:
1. Find the first passive port for which the same IP is not currently
waiting to connect (doesn't matter if the client has already
connected, right)
2. If none is found, fail with a 4xx number

/niklas

Reply via email to