On 5/26/07, Aneel Nazareth <[EMAIL PROTECTED]> wrote:
Maarten Bosteels wrote:
> Hi Aneel,
>
> try adding these two lines:
>
> SocketSessionConfig config = (SocketSessionConfig)
> acceptor.getSessionConfig
> ();
> config.setReuseAddress(true);
>
> This will set reuseAddress true for all accepted sockets.
Aha! SocketAcceptor.getSessionConfig() doesn't seem to exist in 1.1.0,
but calling that on my SocketAcceptorConfig seems to have fixed the problem:
// Prepare the configuration
SocketAcceptorConfig config = new SocketAcceptorConfig();
config.getSessionConfig().setReuseAddress( true );
My apologies for this problem. It has been fixed completely in the
latest revision, and the fix will be included in the next release, so
you won't need to add that line anymore.
HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6