Author: tross
Date: Wed Dec 17 11:32:45 2008
New Revision: 727485
URL: http://svn.apache.org/viewvc?rev=727485&view=rev
Log:
Bounce the connection if an exception is caught on message_transfer.
Modified:
qpid/trunk/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp
Modified: qpid/trunk/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp?rev=727485&r1=727484&r2=727485&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp Wed Dec 17
11:32:45 2008
@@ -856,6 +856,9 @@
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();
}
}