directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinod Panicker <>
Subject Re: [mina] Strange problem when SocketConnector connects with local address specified
Date Thu, 21 Apr 2005 12:28:03 GMT
Hi Trustin,

Since you are binding to a local address, and running the test on the
same port for DatagramChannel and SocketChannel immediately one after
the other, the port is stuck in the TIME_WAIT state due to the
previous test (Datagram), and your app gets a BindException.

This problem also exists if you try to run the current mina test cases


On 4/21/05, Trustin Lee <> wrote:
> Hi,
> IoConnector provides methods that user can specify local address.  If
> local address is specified, connector binds to the specified local
> address first and then connects to remote address.  I added this
> feature by a request of a guy called Luis Gasca because the server
> authenticates his clients by its remote port number.
> I added a test case that tests IoConnectors to connect to echo server
> specifying local address.  It passes in case of DatagramChannel, but
> fails SocketChannel.  It is really strange that it succeeds only about
> one time out of ten iteration.  I still cannot find why it fails, and
> I disabled the test for now.
> Any ideas?
> Trustin
> --
> what we call human nature is actually human habit
> --

View raw message