You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2017/10/19 12:40:32 UTC

[46/50] qpid-proton git commit: Revert "PROTON-1625: flush received data from aborted messages"

Revert "PROTON-1625: flush received data from aborted messages"

This reverts commit b9d64d66c2851e005279fa78f770eed75407536d.


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/8d062b75
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/8d062b75
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/8d062b75

Branch: refs/heads/go1
Commit: 8d062b75376d350543a2ba0bc3b581c7f75757db
Parents: 89c8b5f
Author: Chuck Rolke <cr...@redhat.com>
Authored: Wed Oct 18 10:38:05 2017 -0400
Committer: Chuck Rolke <cr...@redhat.com>
Committed: Wed Oct 18 10:38:05 2017 -0400

----------------------------------------------------------------------
 examples/c/receive.c | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/8d062b75/examples/c/receive.c
----------------------------------------------------------------------
diff --git a/examples/c/receive.c b/examples/c/receive.c
index 2a50166..e77ef27 100644
--- a/examples/c/receive.c
+++ b/examples/c/receive.c
@@ -109,7 +109,6 @@ static bool handle(app_data_t* app, pn_event_t* event) {
          m->size = 0;           /* Forget the data we accumulated */
          pn_delivery_settle(d); /* Free the delivery so we can receive the next message */
          pn_link_flow(l, 1);    /* Replace credit for aborted message */
-         *m = pn_rwbytes_null;  /* Reset the buffer for the next message*/
        } else if (recv < 0 && recv != PN_EOS) {        /* Unexpected error */
          pn_condition_format(pn_link_condition(l), "broker", "PN_DELIVERY error: %s", pn_code(recv));
          pn_link_close(l);               /* Unexpected error, close the link */


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org