From 1dfff197eadcf24823d7915e6eead2a850f679f9 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Tue, 14 Feb 2012 16:09:28 +0000
Subject: [PATCH] Fix OPENDJ-420: Rare SSLExceptions while handling LDAPS connections and big LDAP searches

---
 opends/src/server/org/opends/server/api/ClientConnection.java |   21 +++------------------
 1 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/opends/src/server/org/opends/server/api/ClientConnection.java b/opends/src/server/org/opends/server/api/ClientConnection.java
index 3fe256f..3ce44cd 100644
--- a/opends/src/server/org/opends/server/api/ClientConnection.java
+++ b/opends/src/server/org/opends/server/api/ClientConnection.java
@@ -23,13 +23,14 @@
  *
  *
  *      Copyright 2006-2009 Sun Microsystems, Inc.
- *      Portions copyright 2011 ForgeRock AS
+ *      Portions copyright 2011-2012 ForgeRock AS
  */
 package org.opends.server.api;
 
 
 
 import java.net.InetAddress;
+import java.nio.channels.ByteChannel;
 import java.nio.channels.Selector;
 import java.nio.channels.SocketChannel;
 import java.util.Collection;
@@ -47,7 +48,6 @@
 import org.opends.server.core.PluginConfigManager;
 import org.opends.server.core.SearchOperation;
 import org.opends.server.core.networkgroups.NetworkGroup;
-import org.opends.server.extensions.RedirectingByteChannel;
 import org.opends.server.loggers.debug.DebugTracer;
 import org.opends.server.types.Attribute;
 import org.opends.server.types.AttributeType;
@@ -1327,7 +1327,7 @@
    *
    * @return The lowest level channel associated with a connection.
    */
-  public RedirectingByteChannel getChannel() {
+  public ByteChannel getChannel() {
     // By default, return null, which indicates that there should
     // be no channel.  Subclasses should override this if
     // they want to support a channel.
@@ -1351,21 +1351,6 @@
 
 
   /**
-   * Return the largest application buffer size that should be used
-   * for a connection.
-   *
-   * @return The application buffer size.
-   */
-  public int getAppBufferSize() {
-    // By default, return 0, which indicates that there should
-    // be no application buffer size.  Subclasses should override
-    //this if they want to support a application buffer size.
-    return 0;
-  }
-
-
-
-  /**
    * Retrieves the size limit that will be enforced for searches
    * performed using this client connection.
    *

--
Gitblit v1.10.0