From cc382e83d7cb247348f2b63b6b66f9009aae6d0f Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 26 May 2008 07:59:17 +0000
Subject: [PATCH] Fix for issue 2953: ConcurrentModificationException in idle time limit thread under heavy load.

---
 opends/src/server/org/opends/server/core/IdleTimeLimitThread.java |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/IdleTimeLimitThread.java b/opends/src/server/org/opends/server/core/IdleTimeLimitThread.java
index 88c0095..57750d0 100644
--- a/opends/src/server/org/opends/server/core/IdleTimeLimitThread.java
+++ b/opends/src/server/org/opends/server/core/IdleTimeLimitThread.java
@@ -29,7 +29,6 @@
 
 
 
-import org.opends.server.admin.std.server.ConnectionHandlerCfg;
 import org.opends.server.api.ClientConnection;
 import org.opends.server.api.ConnectionHandler;
 import org.opends.server.api.DirectoryThread;
@@ -100,11 +99,9 @@
         } catch (InterruptedException ie) {}
 
         sleepTime = 5000L;
-        for (ConnectionHandler ch : DirectoryServer.getConnectionHandlers())
+        for (ConnectionHandler<?> ch : DirectoryServer.getConnectionHandlers())
         {
-          ConnectionHandler<? extends ConnectionHandlerCfg> connHandler =
-               (ConnectionHandler<? extends ConnectionHandlerCfg>) ch;
-          for (ClientConnection c : connHandler.getClientConnections())
+          for (ClientConnection c : ch.getClientConnections())
           {
             long idleTime = c.getIdleTime();
             if (idleTime > 0)

--
Gitblit v1.10.0