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 | ef3a332871c5ba1885ce1b4cd2ffb7c94f107f46 (patch) | |
| tree | 8fbb75f336fd0af6c6345fbb9e172f4e9b1c2f9a /cpp/src | |
| parent | 10832bb16a567b68189299a6e52dbf4ee6464744 (diff) | |
| download | qpid-python-ef3a332871c5ba1885ce1b4cd2ffb7c94f107f46.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')
| -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; |
