From 27c83f981b62cbff3aa4d5910acca4e0c68ec165 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/qpid@727485 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/agent/ManagementAgentImpl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpp/src') diff --git a/cpp/src/qpid/agent/ManagementAgentImpl.cpp b/cpp/src/qpid/agent/ManagementAgentImpl.cpp index a0b902114e..3e7898f0da 100644 --- a/cpp/src/qpid/agent/ManagementAgentImpl.cpp +++ b/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