summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2012-07-05 19:57:37 +0000
committerAlan Conway <aconway@apache.org>2012-07-05 19:57:37 +0000
commitceb21577f963207ca2f6b70efddb4390bc934d36 (patch)
treecf177ba0d2c76630759ccea6bd396676befbea5b /qpid/cpp
parentee1608c509fd71adc827c2d96c7cefebe61dd642 (diff)
downloadqpid-python-ceb21577f963207ca2f6b70efddb4390bc934d36.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@1357848 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/client/Connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/client/Connection.cpp b/qpid/cpp/src/qpid/client/Connection.cpp
index 83a4a35b53..8b4eafccaa 100644
--- a/qpid/cpp/src/qpid/client/Connection.cpp
+++ b/qpid/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;