From a7e400276f3aaf5732d09f5f64c58ed64b9705a4 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Mon, 16 Oct 2006 13:02:50 +0000
Subject: [PATCH] Add a synchronization stress test : The test creates a number of modification on the LDAP server and checks that the correct number of modify Messages are received by another thread that has subscribed to the changelog service using the changelogbroker API. It is possible to use several threads to create the modifications.
---
opendj-sdk/opends/src/server/org/opends/server/synchronization/ChangelogBroker.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/synchronization/ChangelogBroker.java b/opendj-sdk/opends/src/server/org/opends/server/synchronization/ChangelogBroker.java
index b265bb3..c9a0605 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/synchronization/ChangelogBroker.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/synchronization/ChangelogBroker.java
@@ -179,9 +179,10 @@
/*
* Read the ChangelogStartMessage that should come back.
- * TODO : should have a timeout here.
*/
+ session.setSoTimeout(1000);
startMsg = (ChangelogStartMessage) session.receive();
+ session.setSoTimeout(0);
/*
* We must not publish changes to a changelog that has not
--
Gitblit v1.10.0