james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1006157 - /james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractAsyncServer.java
Date Sat, 09 Oct 2010 13:32:30 GMT
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


Mime
View raw message