diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-04-28 13:55:31 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-04-28 13:55:31 +0200 |
commit | 1c39b7104d74d53946169df93f7f70189c535ce8 (patch) | |
tree | ae03acb2fa68c06c58f691473ebec3a506282f2e /cpp/test/IceStorm | |
parent | Adjusted timeouts to reduce failures with slow VMs (diff) | |
download | ice-1c39b7104d74d53946169df93f7f70189c535ce8.tar.bz2 ice-1c39b7104d74d53946169df93f7f70189c535ce8.tar.xz ice-1c39b7104d74d53946169df93f7f70189c535ce8.zip |
Fixed ICE-7841 - IceStorm/stress failure
Diffstat (limited to 'cpp/test/IceStorm')
-rw-r--r-- | cpp/test/IceStorm/stress/Subscriber.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cpp/test/IceStorm/stress/Subscriber.cpp b/cpp/test/IceStorm/stress/Subscriber.cpp index e05ebbea313..d7c255f9177 100644 --- a/cpp/test/IceStorm/stress/Subscriber.cpp +++ b/cpp/test/IceStorm/stress/Subscriber.cpp @@ -233,7 +233,16 @@ public: { try { - subscription.publisher->ice_ping(); + // + // check might be invoked before IceStorm got a chance to process the close connection + // message from this subscriber, retry if the ice_ping still succeeds. + // + int nRetry = 5; + while(--nRetry > 0) + { + subscription.publisher->ice_ping(); + IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(200)); + } test(false); } catch(const Ice::ObjectNotExistException&) |