From 4ee80767c0966c573993d08078dcbd59d1b3c787 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Wed, 17 Dec 2008 19:32:45 +0000 Subject: Bounce the connection if an exception is caught on message_transfer. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@727485 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp b/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp index a0b902114e..3e7898f0da 100644 --- a/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp +++ b/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp @@ -856,6 +856,9 @@ void ManagementAgentImpl::ConnectionThread::sendBuffer(Buffer& buf, session.messageTransfer(arg::content=msg, arg::destination=exchange); } catch(exception& e) { QPID_LOG(error, "Exception caught in sendBuffer: " << e.what()); + // Bounce the connection + if (subscriptions) + subscriptions->stop(); } } -- cgit v1.2.1