directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r417730 - /directory/branches/apacheds/nocodec-experiment/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java
Date Wed, 28 Jun 2006 11:34:24 GMT
Author: akarasulu
Date: Wed Jun 28 04:34:23 2006
New Revision: 417730

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

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

Modified: directory/branches/apacheds/nocodec-experiment/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/nocodec-experiment/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java?rev=417730&r1=417729&r2=417730&view=diff
==============================================================================
--- directory/branches/apacheds/nocodec-experiment/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java
(original)
+++ directory/branches/apacheds/nocodec-experiment/server-jndi/src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java
Wed Jun 28 04:34:23 2006
@@ -43,6 +43,7 @@
 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.apache.mina.transport.socket.nio.SocketSessionConfig;
 
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -52,7 +53,7 @@
  * Adds additional bootstrapping for server socket listeners when firing
  * up the server.
  *
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @author <a href="mailto:d    ev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  * @see javax.naming.spi.InitialContextFactory
  */
@@ -135,7 +136,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