directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny" <elecha...@gmail.com>
Subject Re: [jira] Created: (DIRSERVER-926) Can not restart ADS because SO_REUSEADDR isn't used.
Date Wed, 16 May 2007 13:18:59 GMT
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 <trustin@gmail.com> wrote:
>
> On 5/16/07, Alex Karasulu <akarasulu@apache.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.
>
> Trustin
> --
> what we call human nature is actually human habit
> --
> http://gleamynode.net/
> --
> PGP Key ID: 0x0255ECA6
>



-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.iktek.com

Mime
View raw message