diff options
| author | Ted Ross <tross@apache.org> | 2008-12-17 19:32:45 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2008-12-17 19:32:45 +0000 |
| commit | 27c83f981b62cbff3aa4d5910acca4e0c68ec165 (patch) | |
| tree | c58bd030a185f5e1fc88c902f10e693d713e1e89 /cpp | |
| parent | 7c9263021219f5ee4e8bd4c542174daad5e07b5d (diff) | |
| download | qpid-python-27c83f981b62cbff3aa4d5910acca4e0c68ec165.tar.gz | |
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
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/src/qpid/agent/ManagementAgentImpl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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(); } } |
