diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-12-23 09:40:40 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-12-23 09:40:40 +0100 |
commit | 7429e67d2f7ea0edacc97c1bb5c04c97fa89680d (patch) | |
tree | 3a2ce5c1d1b37f468c7a2854bf96a9c8dd176f4a /cpp/test/Ice/retry/TestI.cpp | |
parent | ICE-6223 - Fixed icegrid scripts in Ubuntu packages (diff) | |
download | ice-7429e67d2f7ea0edacc97c1bb5c04c97fa89680d.tar.bz2 ice-7429e67d2f7ea0edacc97c1bb5c04c97fa89680d.tar.xz ice-7429e67d2f7ea0edacc97c1bb5c04c97fa89680d.zip |
Fixed ICE-5751 - don't close the connections for retries
Diffstat (limited to 'cpp/test/Ice/retry/TestI.cpp')
-rw-r--r-- | cpp/test/Ice/retry/TestI.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/cpp/test/Ice/retry/TestI.cpp b/cpp/test/Ice/retry/TestI.cpp index 9a0ed3fc81d..b2cbc9900c0 100644 --- a/cpp/test/Ice/retry/TestI.cpp +++ b/cpp/test/Ice/retry/TestI.cpp @@ -43,15 +43,7 @@ RetryI::opIdempotent(int nRetry, const Ice::Current& current) if(nRetry > _counter) { ++_counter; - if(current.con) - { - current.con->close(true); - } - else - { - throw Ice::ConnectionLostException(__FILE__, __LINE__); - } - return 0; + throw Ice::ConnectionLostException(__FILE__, __LINE__); } int counter = _counter; _counter = 0; @@ -61,14 +53,7 @@ RetryI::opIdempotent(int nRetry, const Ice::Current& current) void RetryI::opNotIdempotent(const Ice::Current& current) { - if(current.con) - { - current.con->close(true); - } - else - { - throw Ice::ConnectionLostException(__FILE__, __LINE__); - } + throw Ice::ConnectionLostException(__FILE__, __LINE__); } void |