summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-06-28 11:09:37 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-06-28 11:09:37 +0200
commitee1c75b4bba52c04f5da54fa2501d0c88d99c2d1 (patch)
tree11f5b601c42a89540a379855412a4a7bef8acbce /js
parentMore fixes for ICE-8166 - simplified a bit the waitResponse exception checking (diff)
downloadice-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 'js')
-rw-r--r--js/test/Ice/timeout/Client.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/js/test/Ice/timeout/Client.js b/js/test/Ice/timeout/Client.js
index 7f244a93893..0b0ee44658f 100644
--- a/js/test/Ice/timeout/Client.js
+++ b/js/test/Ice/timeout/Client.js
@@ -19,7 +19,7 @@
var connect = function(prx)
{
- var nRetry = 5;
+ var nRetry = 10;
var next = function next() {
if(--nRetry > 0) {
return prx.ice_getConnection().then(c => c, ex => next());
@@ -99,7 +99,11 @@
{
out.writeLine("ok");
out.write("testing connection timeout... ");
- to = Test.TimeoutPrx.uncheckedCast(obj.ice_timeout(100 * mult));
+ to = Test.TimeoutPrx.uncheckedCast(obj.ice_timeout(250 * mult));
+ return connect(to);
+ }
+ ).then(() =>
+ {
seq = new Uint8Array(1000000);
return timeout.holdAdapter(1500 * mult);
}