directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r417728 - /directory/branches/apacheds/noback-experiment/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java
Date Wed, 28 Jun 2006 11:31:57 GMT
Author: akarasulu
Date: Wed Jun 28 04:31:56 2006
New Revision: 417728

URL: http://svn.apache.org/viewvc?rev=417728&view=rev
Log:
applying disabling of nagles algorithm to two test branches

Modified:
    directory/branches/apacheds/noback-experiment/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java

Modified: directory/branches/apacheds/noback-experiment/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/noback-experiment/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java?rev=417728&r1=417727&r2=417728&view=diff
==============================================================================
--- directory/branches/apacheds/noback-experiment/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java
(original)
+++ directory/branches/apacheds/noback-experiment/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java
Wed Jun 28 04:31:56 2006
@@ -43,7 +43,6 @@
 import org.apache.mina.transport.socket.nio.DatagramAcceptor;
 import org.apache.mina.transport.socket.nio.SocketAcceptor;
 import org.apache.mina.transport.socket.nio.SocketAcceptorConfig;
-
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -135,7 +134,8 @@
             acceptorCfg.setDisconnectOnUnbind( false );
             acceptorCfg.setReuseAddress( true );
             acceptorCfg.setFilterChainBuilder( chainBuilder );
-
+            ((SocketSessionConfig)(acceptorCfg.getSessionConfig())).setTcpNoDelay( true );
+            
             tcpAcceptor.bind( new InetSocketAddress( port ), protocolProvider.getHandler(),
acceptorCfg );
 
             if ( log.isInfoEnabled() )



Mime
View raw message