Perhaps it's not the LDAP or LDAPS service that is causing this. Is there a chance that we're not
using setReuseAddress( false ) on some other service which is causing this failure? Perhaps the
This is a long shot since no other services are enabled by default but I thought I'd throw out
I have modified the code following your instructions, but I get exactly the same behavior (socket already in use) :
SocketAcceptorConfig acceptorCfg = new SocketAcceptorConfig();
acceptorCfg.setDisconnectOnUnbind ( false );
acceptorCfg.setReuseAddress( false );
acceptorCfg.setFilterChainBuilder( chainBuilder );
acceptorCfg.setThreadModel( threadModel );
((SocketSessionConfig)( acceptorCfg.getSessionConfig())).setTcpNoDelay( true );
((SocketSessionConfig)(acceptorCfg.getSessionConfig())).setReuseAddress true );
There must be something wrong elsewhere.
Emmanuel--On 5/16/07, Trustin Lee < email@example.com > wrote:On 5/16/07, Alex Karasulu < firstname.lastname@example.org > wrote:
> I'm beginning to suspect that there may be an issue with MINA here. It
> might be
> interesting to setup a test server with MINA using the
> acceptorCfg.setReuseAddress( true );
> feature then checking to see if this problem occurs. If not another service
> which may not
> be properly configured via MINA may be causing this trace.
acceptorCfg.setReuseAddress() should be set to 'false'.
Instead, acceptorCfg.getSessionConfig().setReuseAddress(true) should be called.
It was a long standing issue, and I thought it's fixed. Let me fix
the problem again in the next release.
what we call human nature is actually human habit
PGP Key ID: 0x0255ECA6