From 56f260d9e4ba76d9205ed536a498359063534983 Mon Sep 17 00:00:00 2001
From: mrossign <mrossign@localhost>
Date: Tue, 18 Dec 2007 14:57:40 +0000
Subject: [PATCH] Fix for #2570: Received fatal alert: certificate_unknown We now log (notice, instead of error) a more explicit message that tells an SSL connection attempt failed (from node xxx) to the replication server.

---
 opends/src/server/org/opends/server/replication/server/ReplicationServer.java |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/server/ReplicationServer.java b/opends/src/server/org/opends/server/replication/server/ReplicationServer.java
index c1add4c..a7d69e5 100644
--- a/opends/src/server/org/opends/server/replication/server/ReplicationServer.java
+++ b/opends/src/server/org/opends/server/replication/server/ReplicationServer.java
@@ -248,6 +248,8 @@
         newSocket.setKeepAlive(true);
         ProtocolSession session =
              replSessionSecurity.createServerSession(newSocket);
+        if (session == null) // Error, go back to accept
+          continue;
         ServerHandler handler = new ServerHandler(session, queueSize);
         handler.start(null, serverId, serverURL, rcvWindow,
                       false, this);

--
Gitblit v1.10.0