You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2020/10/20 16:02:17 UTC
[qpid-dispatch] 02/04: DISPATCH-1654: allow content to be seen when
available
This is an automated email from the ASF dual-hosted git repository.
chug pushed a commit to branch dev-protocol-adaptors-2
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
commit c56a1fba5165589c11a7779580a251c45e20828a
Author: Gordon Sim <gs...@redhat.com>
AuthorDate: Wed Oct 7 12:09:02 2020 +0100
DISPATCH-1654: allow content to be seen when available
---
src/message.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/message.c b/src/message.c
index 23381db..a3a8152 100644
--- a/src/message.c
+++ b/src/message.c
@@ -1554,6 +1554,13 @@ qd_message_t *qd_message_receive(pn_delivery_t *delivery)
// the entire message. We'll be back later to finish it up.
// Return the message so that the caller can start sending out whatever we have received so far
//
+ // push what we do have for testing/processing
+ LOCK(content->lock);
+ qd_buffer_set_fanout(content->pending, content->fanout);
+ DEQ_INSERT_TAIL(content->buffers, content->pending);
+ content->pending = 0;
+ UNLOCK(content->lock);
+ content->pending = qd_buffer();
break;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org