From 4cbe378caee0ee7389b11e2177010a6f80c1ea9c 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.
---
opends/src/server/org/opends/server/synchronization/ChangelogBroker.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/synchronization/ChangelogBroker.java b/opends/src/server/org/opends/server/synchronization/ChangelogBroker.java
index b265bb3..c9a0605 100644
--- a/opends/src/server/org/opends/server/synchronization/ChangelogBroker.java
+++ b/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