summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2008-12-17 19:32:45 +0000
committerTed Ross <tross@apache.org>2008-12-17 19:32:45 +0000
commit4ee80767c0966c573993d08078dcbd59d1b3c787 (patch)
treea6d67d3f7ab619eac441d4e880eb9440b3dc48bf /qpid/cpp/src
parent5b8b6553e5e5d8cc64d74ee359ba42c755f3755e (diff)
downloadqpid-python-4ee80767c0966c573993d08078dcbd59d1b3c787.tar.gz
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
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp3
1 files changed, 3 insertions, 0 deletions
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();
}
}