diff options
| author | Alan Conway <aconway@apache.org> | 2012-07-05 19:57:37 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2012-07-05 19:57:37 +0000 |
| commit | d2a2998670dfcbe5855b0eb8b2a09fdcc1879c80 (patch) | |
| tree | 8fbb75f336fd0af6c6345fbb9e172f4e9b1c2f9a /cpp/src/qpid/client/Connection.cpp | |
| parent | 9ab580f80bf757d5ef362d531dd61c1a715b8e2d (diff) | |
| download | qpid-python-d2a2998670dfcbe5855b0eb8b2a09fdcc1879c80.tar.gz | |
QPID-4085: HA failover test: client failure: "connection not yet open"
Sporadic failure of ha_tests.LongTests.test_failover_send_receive with client error.
"connection not yet open". Fixed by replacing Exception with TransportFailure
so reconnect logic will apply.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1357848 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/Connection.cpp')
| -rw-r--r-- | cpp/src/qpid/client/Connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/Connection.cpp b/cpp/src/qpid/client/Connection.cpp index 83a4a35b53..8b4eafccaa 100644 --- a/cpp/src/qpid/client/Connection.cpp +++ b/cpp/src/qpid/client/Connection.cpp @@ -136,7 +136,7 @@ const ConnectionSettings& Connection::getNegotiatedSettings() Session Connection::newSession(const std::string& name, uint32_t timeout) { if (!isOpen()) - throw Exception(QPID_MSG("Connection has not yet been opened")); + throw TransportFailure("Can't create session, connection is not open"); Session s; SessionBase_0_10Access(s).set(impl->newSession(name, timeout)); return s; |
