From a77994116fdc36bff765e79f85fdb29027259f32 Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Mon, 02 Nov 2026 08:21:08 +0000
Subject: [PATCH] [#1250] Report unexpected replication stream EOF as a bad disconnection (#1254)
---
opendj-server-legacy/src/main/java/org/opends/server/replication/server/ServerWriter.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/server/ServerWriter.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/server/ServerWriter.java
index 89fe2f8..fce6760 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/server/ServerWriter.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/server/ServerWriter.java
@@ -150,9 +150,9 @@
* handler closes it too - how the connection ended is what the reader saw, not this writer.
* The reader logs nothing for the StopMsg of a peer leaving in order, and reports a read
* which failed on the socket as a bad disconnection, at ERROR. An end of the stream with no
- * StopMsg before it - a peer older than protocol V4, a peer killed with nothing left unread,
- * a peer giving up a session which had failed - it reports only at NOTICE, as
- * NOTE_READER_EXCEPTION (issue #1250).
+ * StopMsg before it is reported as a bad disconnection for a peer using protocol V4 or
+ * later, unless the handler is shutting down or this side has begun the close; otherwise,
+ * and for an older peer, at NOTICE.
*
* And a session closed on this side is the only one this writer meets a failing write on
* while the session runs the publisher thread ServerHandler starts: publish() then queues, a
--
Gitblit v1.10.0