From f24118fad27564bc163fd5c4a2955ca36c73489c Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 12 Oct 2006 15:08:00 +0000
Subject: [PATCH] Update the server code to eliminate the need for a 5-second delay when attempting to terminate a client connection from within an operation plugin. The issue arose when the attempt to terminate the connection tried to cancel the operation that initiated the disconnect, which made it necessary to wait for a 5-second timeout before continuing.

---
 opends/src/server/org/opends/server/extensions/TraditionalWorkerThread.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opends/src/server/org/opends/server/extensions/TraditionalWorkerThread.java b/opends/src/server/org/opends/server/extensions/TraditionalWorkerThread.java
index 6969fe4..e59bc4f 100644
--- a/opends/src/server/org/opends/server/extensions/TraditionalWorkerThread.java
+++ b/opends/src/server/org/opends/server/extensions/TraditionalWorkerThread.java
@@ -211,8 +211,8 @@
                                       String.valueOf(operation),
                                       stackTraceToSingleLineString(e));
 
-          operation.getClientConnection().disconnect(
-            DisconnectReason.SERVER_ERROR, true, message, msgID);
+          operation.disconnectClient(DisconnectReason.SERVER_ERROR, true,
+                                     message, msgID);
         }
         catch (Exception e2)
         {

--
Gitblit v1.10.0