directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r963616 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapServer.java
Date Tue, 13 Jul 2010 07:34:03 GMT
Author: elecharny
Date: Tue Jul 13 07:34:03 2010
New Revision: 963616

URL: http://svn.apache.org/viewvc?rev=963616&view=rev
Log:
Increase the read and send Buffer default size

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapServer.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapServer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapServer.java?rev=963616&r1=963615&r2=963616&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapServer.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapServer.java
Tue Jul 13 07:34:03 2010
@@ -95,6 +95,7 @@ import org.apache.mina.filter.codec.Prot
 import org.apache.mina.filter.executor.ExecutorFilter;
 import org.apache.mina.filter.executor.UnorderedThreadPoolExecutor;
 import org.apache.mina.handler.demux.MessageHandler;
+import org.apache.mina.transport.socket.AbstractSocketSessionConfig;
 import org.apache.mina.transport.socket.SocketAcceptor;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -595,6 +596,9 @@ public class LdapServer extends Director
             // Inject the protocol handler
             acceptor.setHandler( getHandler() );
             
+            ((AbstractSocketSessionConfig)acceptor.getSessionConfig()).setReadBufferSize(
64*1024 );
+            ((AbstractSocketSessionConfig)acceptor.getSessionConfig()).setSendBufferSize(
64*1024 );
+
             // Bind to the configured address
             acceptor.bind();
             



Mime
View raw message