diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-06-28 11:09:37 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-06-28 11:09:37 +0200 |
commit | ee1c75b4bba52c04f5da54fa2501d0c88d99c2d1 (patch) | |
tree | 11f5b601c42a89540a379855412a4a7bef8acbce /java | |
parent | More fixes for ICE-8166 - simplified a bit the waitResponse exception checking (diff) | |
download | ice-ee1c75b4bba52c04f5da54fa2501d0c88d99c2d1.tar.bz2 ice-ee1c75b4bba52c04f5da54fa2501d0c88d99c2d1.tar.xz ice-ee1c75b4bba52c04f5da54fa2501d0c88d99c2d1.zip |
Fixed ICE-8166 and ICE-8171 - increased 100ms connection timeouts to 250ms, also increased retryCount for connection establishment
Diffstat (limited to 'java')
-rw-r--r-- | java/test/src/main/java/test/Ice/timeout/AllTests.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/java/test/src/main/java/test/Ice/timeout/AllTests.java b/java/test/src/main/java/test/Ice/timeout/AllTests.java index 73c9be60b78..d7967a59b1b 100644 --- a/java/test/src/main/java/test/Ice/timeout/AllTests.java +++ b/java/test/src/main/java/test/Ice/timeout/AllTests.java @@ -59,7 +59,7 @@ public class AllTests public static com.zeroc.Ice.Connection connect(com.zeroc.Ice.ObjectPrx prx) { - int nRetry = 5; + int nRetry = 10; while(--nRetry > 0) { try @@ -139,8 +139,9 @@ public class AllTests // // Expect TimeoutException. // - TimeoutPrx to = timeout.ice_timeout(100); - timeout.holdAdapter(500 * mult); + TimeoutPrx to = timeout.ice_timeout(250); + connect(to); + timeout.holdAdapter(750 * mult); try { to.sendData(seq); @@ -397,9 +398,9 @@ public class AllTests // Verify that timeout set via ice_timeout() is still used for requests. // timeout.op(); // Ensure adapter is active. - to = to.ice_timeout(100); + to = to.ice_timeout(250); connect(to); - timeout.holdAdapter(500 * mult); + timeout.holdAdapter(750 * mult); try { to.sendData(seq); |