diff options
author | Benoit Foucher <benoit@zeroc.com> | 2020-02-20 19:22:03 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2020-02-20 19:22:03 +0100 |
commit | 7e164511561d3c4fa0de8b1dcb24fc4a25b858a4 (patch) | |
tree | fb60bbddb1138113b611648939a730a7871c19e3 /js | |
parent | Removed unused SSLEngine.decodeASN1Length method, fixes #686 (diff) | |
download | ice-7e164511561d3c4fa0de8b1dcb24fc4a25b858a4.tar.bz2 ice-7e164511561d3c4fa0de8b1dcb24fc4a25b858a4.tar.xz ice-7e164511561d3c4fa0de8b1dcb24fc4a25b858a4.zip |
Don't retry invocations on fixed proxies, fixes #671
Diffstat (limited to 'js')
-rw-r--r-- | js/src/Ice/ProxyFactory.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/Ice/ProxyFactory.js b/js/src/Ice/ProxyFactory.js index df54bfeded4..015456998f8 100644 --- a/js/src/Ice/ProxyFactory.js +++ b/js/src/Ice/ProxyFactory.js @@ -121,6 +121,15 @@ class ProxyFactory throw ex; } + // + // If it's a fixed proxy, retrying isn't useful as the proxy is tied to + // the connection and the request will fail with the exception. + // + if(ref instanceof Ice.FixedReference) + { + throw ex; + } + if(ex instanceof Ice.ObjectNotExistException) { if(ref.getRouterInfo() !== null && ex.operation === "ice_add_proxy") |