Github user alanconway commented on a diff in the pull request: https://github.com/apache/qpid-dispatch/pull/172#discussion_r126164203 --- Diff: src/message.c --- @@ -1026,16 +1150,24 @@ qd_message_t *qd_message_receive(pn_delivery_t *delivery) // will only happen if the size of the message content is an exact multiple // of the buffer size. // - - if (qd_buffer_size(buf) == 0) { + if (buf && qd_buffer_size(buf) == 0) { + sys_mutex_lock(msg->content->lock); DEQ_REMOVE_TAIL(msg->content->buffers); + sys_mutex_unlock(msg->content->lock); qd_buffer_free(buf); } + // + // We have received the entire message since rc == PN_EOS, set the receive_complete flag to false --- End diff -- Comment typo: says "false" should say "true"
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org