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

Matthew Swift
09.56.2011 82cb8345e89f675edabde486d9d259558ef0ee0a
Issue OPENDJ-262: Implement pass through authentication (PTA)

Use a CLQ instead of LBQ since we don't require a bounded queue.
1 files modified
6 ■■■■ changed files
opends/src/server/org/opends/server/extensions/LDAPPassThroughAuthenticationPolicyFactory.java 6 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/extensions/LDAPPassThroughAuthenticationPolicyFactory.java
@@ -40,7 +40,7 @@
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.Semaphore;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.ReentrantReadWriteLock;
@@ -988,8 +988,8 @@
      private final int poolSize =
        Runtime.getRuntime().availableProcessors() * 2;
      private final Semaphore availableConnections = new Semaphore(poolSize);
      private final LinkedBlockingQueue<Connection> connectionPool =
        new LinkedBlockingQueue<Connection>();
      private final ConcurrentLinkedQueue<Connection> connectionPool =
        new ConcurrentLinkedQueue<Connection>();