From 23b1e20ff9fe938572a0b62ec5a12f12154445df Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Wed, 04 Jul 2007 15:12:04 +0000
Subject: [PATCH] The problem was that the publisher thread is stuck waiting for the window to re-open on a connection that has been closed without notifying the publisher.

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

diff --git a/opends/src/server/org/opends/server/replication/protocol/WindowMessage.java b/opends/src/server/org/opends/server/replication/protocol/WindowMessage.java
index de39bf3..c311b3b 100644
--- a/opends/src/server/org/opends/server/replication/protocol/WindowMessage.java
+++ b/opends/src/server/org/opends/server/replication/protocol/WindowMessage.java
@@ -32,9 +32,13 @@
 
 
 /**
- * This message is used by LDAP server when they first connect.
- * to a replication server to let them know who they are and what is their state
- * (their RUV)
+ * This message is used by LDAP server or by Replication Servers to
+ * update the send window of the remote entities.
+ *
+ * A receiving entity should create such a message with a given credit
+ * when it wants to open the send window of the remote entity.
+ * A LDAP or Replication Server should increase its send window when receiving
+ * such a message.
  */
 public class WindowMessage extends ReplicationMessage implements
     Serializable
@@ -47,7 +51,7 @@
    * Create a new WindowMessage.
    *
    * @param numAck The number of acknowledged messages.
-   *               The window will be increase by this number.
+   *               The window will be increase by this credit number.
    */
   public WindowMessage(int numAck)
   {

--
Gitblit v1.10.0