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:46:29 GMT
Hi Trustin,

On 4/21/05, Vinod Panicker <> wrote:
> 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.

Forgot to add, you can use setReuseAddress(true) on the
socket/serversocket object to enable it to bind on a port that is
stuck in the TIME_WAIT state.



View raw message