NO-JIRA: Python: keep received encoded bytes in the delivery

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

Branch: refs/heads/proton-go
Commit: 7de6a183bd84e90a772ab622dbba04e749a97f44
Parents: 07ea651
Author: Bozo Dragojevic <[email protected]>
Authored: Mon Sep 21 13:00:00 2015 +0200
Committer: Bozo Dragojevic <[email protected]>
Committed: Wed Sep 23 20:04:03 2015 +0200

----------------------------------------------------------------------
 proton-c/bindings/python/proton/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/7de6a183/proton-c/bindings/python/proton/__init__.py
----------------------------------------------------------------------
diff --git a/proton-c/bindings/python/proton/__init__.py 
b/proton-c/bindings/python/proton/__init__.py
index c3890d4..fc26264 100644
--- a/proton-c/bindings/python/proton/__init__.py
+++ b/proton-c/bindings/python/proton/__init__.py
@@ -1134,13 +1134,13 @@ The group-id for any replies.
     if link.is_sender: return None
     dlv = link.current
     if not dlv or dlv.partial: return None
-    encoded = link.recv(dlv.pending)
+    dlv.encoded = link.recv(dlv.pending)
     link.advance()
     # the sender has already forgotten about the delivery, so we might
     # as well too
     if link.remote_snd_settle_mode == Link.SND_SETTLED:
       dlv.settle()
-    self.decode(encoded)
+    self.decode(dlv.encoded)
     return dlv
 
   def __repr2__(self):


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to