From fcf635c6a4436df96ac25e50f76d7e2c78e971b9 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 03 Sep 2007 19:53:23 +0000
Subject: [PATCH] Implement support for a maximum blocked write time limit in the LDAP connection handler, which can be used to terminate client connections if an attempt to write data to the client has been blocked for too long.  This will generally occur if the client has become unresponsive or there is a network outage.

---
 opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java b/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java
index f44cba2..a853cff 100644
--- a/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java
+++ b/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java
@@ -486,6 +486,20 @@
 
 
   /**
+   * Retrieves the maximum length of time in milliseconds that attempts to write
+   * to LDAP client connections should be allowed to block.
+   *
+   * @return  The maximum length of time in milliseconds that attempts to write
+   *          to LDAP client connections should be allowed to block, or zero if
+   *          there should not be any limit imposed.
+   */
+  public long getMaxBlockedWriteTimeLimit() {
+    return currentConfig.getMaxBlockedWriteTimeLimit();
+  }
+
+
+
+  /**
    * Retrieves the maximum ASN.1 element value length that will be
    * allowed by this connection handler.
    *

--
Gitblit v1.10.0