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/SocketSession.java | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/protocol/SocketSession.java b/opends/src/server/org/opends/server/replication/protocol/SocketSession.java
index dbe3893..e20bffa 100644
--- a/opends/src/server/org/opends/server/replication/protocol/SocketSession.java
+++ b/opends/src/server/org/opends/server/replication/protocol/SocketSession.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;
@@ -67,6 +67,8 @@
*/
private long lastReceiveTime = 0;
+ private boolean closeInitiated = false;
+
/**
* Creates a new SocketSession based on the provided socket.
@@ -90,6 +92,8 @@
*/
public void close() throws IOException
{
+ closeInitiated = true;
+
if (debugEnabled())
{
TRACER.debugInfo("Closing SocketSession."
@@ -231,4 +235,12 @@
{
socket.setSoTimeout(timeout);
}
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean closeInitiated()
+ {
+ return closeInitiated;
+ }
}
--
Gitblit v1.10.0