mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

vharseko
19.45.2023 6b6d725820bd19244cd060cc9ef50da27ef68455
Extend admin port connection limits (#289)

https://github.com/OpenIdentityPlatform/OpenDJ/issues/273
3 files modified
9 ■■■■■ changed files
opendj-grizzly/src/main/java/org/forgerock/opendj/grizzly/DefaultTCPNIOTransport.java 2 ●●● patch | view | raw | blame | history
opendj-grizzly/src/main/java/org/forgerock/opendj/grizzly/ServerTCPNIOTransport.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/config/AdministrationConnector.java 5 ●●●●● patch | view | raw | blame | history
opendj-grizzly/src/main/java/org/forgerock/opendj/grizzly/DefaultTCPNIOTransport.java
@@ -135,7 +135,7 @@
            // Enabled by default.
            builder.setReuseAddress(Boolean.parseBoolean(reuseAddressStr));
        }
        builder.setMemoryManager(new PooledMemoryManager(true));
        //builder.setMemoryManager(new PooledMemoryManager(true));
        
        final TCPNIOTransport transport = builder.build();
opendj-grizzly/src/main/java/org/forgerock/opendj/grizzly/ServerTCPNIOTransport.java
@@ -98,7 +98,7 @@
            builder.setReuseAddress(Boolean.parseBoolean(reuseAddressStr));
        }
        // Force usage of PooledMemoryManager which allows to use grizzly's buffers across threads.
        builder.setMemoryManager(new PooledMemoryManager(true));
        //builder.setMemoryManager(new PooledMemoryManager(true));
        final TCPNIOTransport transport = builder.build();
opendj-server-legacy/src/main/java/org/opends/server/config/AdministrationConnector.java
@@ -48,6 +48,7 @@
import org.opends.server.core.DirectoryServer;
import org.opends.server.core.ServerContext;
import org.opends.server.core.SynchronousStrategy;
import org.opends.server.core.WorkQueueStrategy;
import org.opends.server.types.DirectoryException;
import org.opends.server.types.FilePermission;
import org.opends.server.types.InitializationException;
@@ -98,7 +99,7 @@
  /** 5 Mb. */
  private static final int ADMIN_MAX_REQUEST_SIZE = 5000000;
  private static final int ADMIN_WRITE_BUFFER_SIZE = 4096;
  private static final int ADMIN_NUM_REQUEST_HANDLERS = 1;
  private static final int ADMIN_NUM_REQUEST_HANDLERS = 4;
  private static final boolean ADMIN_SEND_REJECTION_NOTICE = true;
  private static final boolean ADMIN_USE_TCP_KEEP_ALIVE = true;
  private static final boolean ADMIN_USE_TCP_NO_DELAY = true;
@@ -132,7 +133,7 @@
    // Administration Connector uses the LDAP connection handler implementation
    adminConnectionHandler = new LDAPConnectionHandler2(
        new SynchronousStrategy(), FRIENDLY_NAME);
        new WorkQueueStrategy(), FRIENDLY_NAME);
    adminConnectionHandler.initializeConnectionHandler(serverContext, new LDAPConnectionCfgAdapter(config));
    adminConnectionHandler.setAdminConnectionHandler();