From c36a80f0b03bea42bca570e994d08613b08fd6dd Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 13 May 2008 20:38:21 +0000 Subject: From Jonathan Robie: https://issues.apache.org/jira/browse/QPID-1056: Python examples for the xml exchange. https://issues.apache.org/jira/browse/QPID-1057 Fixes to the XmlExchange.cpp that prevent it from crashing the broker when used with python clients that don't send application header properties git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@656005 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/Dispatcher.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cpp/src/qpid/client') diff --git a/cpp/src/qpid/client/Dispatcher.cpp b/cpp/src/qpid/client/Dispatcher.cpp index 37b37d9077..2bbe5a122f 100644 --- a/cpp/src/qpid/client/Dispatcher.cpp +++ b/cpp/src/qpid/client/Dispatcher.cpp @@ -88,10 +88,12 @@ void Dispatcher::run() } } } - } catch (const ClosedException&) { - //ignore it and return + session.sync(); // Make sure all our acks are received before returning. + } + catch (const ClosedException&) {} //ignore it and return + catch (const std::exception& e) { + QPID_LOG(error, "Exception in client dispatch thread: " << e.what()); } - session.sync(); // Make sure all our acks are received before returning. } void Dispatcher::stop() -- cgit v1.2.1