From a3c9dfeead519e87ba197e5e66b1013f39fa4366 Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Fri, 26 Sep 2008 14:04:54 +0200 Subject: IceGrid fixes to ensure the registry/node don't wait too long if a replica becomes unreachable --- cpp/src/IceGrid/NodeCache.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpp/src/IceGrid/NodeCache.cpp') diff --git a/cpp/src/IceGrid/NodeCache.cpp b/cpp/src/IceGrid/NodeCache.cpp index 812cb1977df..b9b8b478243 100644 --- a/cpp/src/IceGrid/NodeCache.cpp +++ b/cpp/src/IceGrid/NodeCache.cpp @@ -781,7 +781,10 @@ NodeEntry::checkSession() const while(_registering) { - wait(); + if(!timedWait(IceUtil::Time::seconds(5))) + { + break; // Consider the node down if it doesn't respond promptly. + } } if(!_session) -- cgit v1.2.3