directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r375092 - /directory/sandbox/akarasulu/rc1refactor/apacheds/simple/jndi/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java
Date Sun, 05 Feb 2006 20:15:49 GMT
Author: akarasulu
Date: Sun Feb  5 12:15:46 2006
New Revision: 375092

URL: http://svn.apache.org/viewcvs?rev=375092&view=rev
Log:
setting ldap bind to use SO_REUSEADDR

Modified:
    directory/sandbox/akarasulu/rc1refactor/apacheds/simple/jndi/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java

Modified: directory/sandbox/akarasulu/rc1refactor/apacheds/simple/jndi/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1refactor/apacheds/simple/jndi/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java?rev=375092&r1=375091&r2=375092&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1refactor/apacheds/simple/jndi/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java
(original)
+++ directory/sandbox/akarasulu/rc1refactor/apacheds/simple/jndi/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java
Sun Feb  5 12:15:46 2006
@@ -56,6 +56,7 @@
 import org.apache.mina.common.WriteFuture;
 import org.apache.mina.registry.Service;
 import org.apache.mina.registry.ServiceRegistry;
+import org.apache.mina.transport.socket.nio.SocketAcceptor;
 import org.apache.ntp.NtpConfiguration;
 import org.apache.ntp.NtpServer;
 import org.apache.protocol.common.LoadStrategy;
@@ -423,7 +424,9 @@
         try
         {
             // Disable the disconnection of the clients on unbind
-            minaRegistry.getAcceptor( service.getTransportType() ).setDisconnectClientsOnUnbind(
false );
+            IoAcceptor acceptor = minaRegistry.getAcceptor( service.getTransportType() );
+            acceptor.setDisconnectClientsOnUnbind( false );
+            ( ( SocketAcceptor ) acceptor ).setReuseAddress( true );
             
             minaRegistry.bind( service, protocolProvider.getHandler(), chainBuilder );
             ldapService = service;



Mime
View raw message