From 0181e868e5eb1e3896ed4b371947bed2ccb9aa50 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.
---
opendj-sdk/opends/src/server/org/opends/server/extensions/TraditionalWorkerThread.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/extensions/TraditionalWorkerThread.java b/opendj-sdk/opends/src/server/org/opends/server/extensions/TraditionalWorkerThread.java
index 6969fe4..e59bc4f 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/extensions/TraditionalWorkerThread.java
+++ b/opendj-sdk/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