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 /csharp/src/Ice/ProxyFactory.cs | |
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 'csharp/src/Ice/ProxyFactory.cs')
-rw-r--r-- | csharp/src/Ice/ProxyFactory.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/csharp/src/Ice/ProxyFactory.cs b/csharp/src/Ice/ProxyFactory.cs index 514bd49910a..0a83194f2e1 100644 --- a/csharp/src/Ice/ProxyFactory.cs +++ b/csharp/src/Ice/ProxyFactory.cs @@ -87,6 +87,15 @@ namespace IceInternal 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 is FixedReference) + { + throw ex; + } + Ice.ObjectNotExistException one = ex as Ice.ObjectNotExistException; if(one != null) { |