summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2015-07-27 19:59:42 +0000
committerGordon Sim <gsim@apache.org>2015-07-27 19:59:42 +0000
commite8e2210145df9122b0239782ec75863b55efb822 (patch)
treeaf6a246d6a38207676e620642fc8f24f495b31cc
parent28b802e76bb0542db1173e19dcb6979670a1bb70 (diff)
downloadqpid-python-e8e2210145df9122b0239782ec75863b55efb822.tar.gz
QPID-6659: wait for full message before processing
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1692937 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/cpp/src/qpid/messaging/amqp/ConnectionContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/messaging/amqp/ConnectionContext.cpp b/qpid/cpp/src/qpid/messaging/amqp/ConnectionContext.cpp
index 1b8c848941..63081c8be2 100644
--- a/qpid/cpp/src/qpid/messaging/amqp/ConnectionContext.cpp
+++ b/qpid/cpp/src/qpid/messaging/amqp/ConnectionContext.cpp
@@ -285,7 +285,7 @@ bool ConnectionContext::get(boost::shared_ptr<SessionContext> ssn, boost::shared
checkClosed(ssn, lnk);
pn_delivery_t* current = pn_link_current((pn_link_t*) lnk->receiver);
QPID_LOG(debug, "In ConnectionContext::get(), current=" << current);
- if (current) {
+ if (current && !pn_delivery_partial(current)) {
qpid::messaging::MessageImpl& impl = MessageImplAccess::get(message);
boost::shared_ptr<EncodedMessage> encoded(new EncodedMessage(pn_delivery_pending(current)));
encoded->setNestAnnotationsOption(nestAnnotations);