From 15200804c06b26016c515617700a46bf5badb6ca Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Thu, 28 May 2009 06:38:25 +0000
Subject: [PATCH] Fix for 4015 : wrong error messages when replication heart-beat fails

---
 opends/src/server/org/opends/server/replication/protocol/TLSSocketSession.java |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/protocol/TLSSocketSession.java b/opends/src/server/org/opends/server/replication/protocol/TLSSocketSession.java
index 60bddea..4eda8e5 100644
--- a/opends/src/server/org/opends/server/replication/protocol/TLSSocketSession.java
+++ b/opends/src/server/org/opends/server/replication/protocol/TLSSocketSession.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2006-2008 Sun Microsystems, Inc.
+ *      Copyright 2006-2009 Sun Microsystems, Inc.
  */
 package org.opends.server.replication.protocol;
 
@@ -69,6 +69,8 @@
    */
   private long lastReceiveTime = 0;
 
+  private boolean closeInitiated = false;
+
 
   /**
    * Creates a new TLSSocketSession.
@@ -96,6 +98,7 @@
    */
   public void close() throws IOException
   {
+    closeInitiated = true;
     if (debugEnabled())
     {
       TRACER.debugInfo("Closing SocketSession." +
@@ -243,4 +246,12 @@
   {
     plainSocket.setSoTimeout(timeout);
   }
+
+  /**
+   * {@inheritDoc}
+   */
+  public boolean closeInitiated()
+  {
+    return closeInitiated;
+  }
 }

--
Gitblit v1.10.0