qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject svn commit: r1357848 - /qpid/trunk/qpid/cpp/src/qpid/client/Connection.cpp
Date Thu, 05 Jul 2012 19:57:37 GMT
Author: aconway
Date: Thu Jul  5 19:57:37 2012
New Revision: 1357848

URL: http://svn.apache.org/viewvc?rev=1357848&view=rev
Log:
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.

Modified:
    qpid/trunk/qpid/cpp/src/qpid/client/Connection.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/client/Connection.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/client/Connection.cpp?rev=1357848&r1=1357847&r2=1357848&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/client/Connection.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/client/Connection.cpp Thu Jul  5 19:57:37 2012
@@ -136,7 +136,7 @@ const ConnectionSettings& Connection::ge
 
 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;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message