You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2010/10/09 15:32:30 UTC

svn commit: r1006157 - /james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractAsyncServer.java

Author: norman
Date: Sat Oct  9 13:32:30 2010
New Revision: 1006157

URL: http://svn.apache.org/viewvc?rev=1006157&view=rev
Log:
use tcpNoDelay as we use it only as TCP server. Just improve performance a bit..

Modified:
    james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractAsyncServer.java

Modified: james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractAsyncServer.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractAsyncServer.java?rev=1006157&r1=1006156&r2=1006157&view=diff
==============================================================================
--- james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractAsyncServer.java (original)
+++ james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractAsyncServer.java Sat Oct  9 13:32:30 2010
@@ -90,6 +90,7 @@ public abstract class AbstractAsyncServe
         // Bind and start to accept incoming connections.
         bootstrap.setOption("backlog", backlog);
         bootstrap.setOption("reuseAddress", true);
+        bootstrap.setOption("child.tcpNoDelay", true);
         Channel serverChannel;
         if (getIP() == null) {
             serverChannel = bootstrap.bind(new InetSocketAddress(port));



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org