summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorKeith Wall <kwall@apache.org>2014-09-06 22:05:30 +0000
committerKeith Wall <kwall@apache.org>2014-09-06 22:05:30 +0000
commit5ab09164166be8813ab32e388e08c64ef122030a (patch)
treef84a5b11ee830ee05f97cbbe69fe71c5ad79d628 /python
parent704fd672e267ce179f228bc87fc20c4772ec56f0 (diff)
downloadqpid-python-5ab09164166be8813ab32e388e08c64ef122030a.tar.gz
QPID-6081: [Python Client] 08..091 Ensure that multiframe bodies are received correctly
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1622948 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r--python/qpid/peer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/qpid/peer.py b/python/qpid/peer.py
index 95055cc014..40571780f1 100644
--- a/python/qpid/peer.py
+++ b/python/qpid/peer.py
@@ -357,12 +357,12 @@ def read_content(queue):
for i in range(header.weight):
children.append(read_content(queue))
buf = StringIO()
- eof = header.eof
- while not eof:
+ readbytes = 0
+ while readbytes < header.size:
body = queue.get()
- eof = body.eof
content = body.content
buf.write(content)
+ readbytes += len(content)
return Content(buf.getvalue(), children, header.properties.copy())
class Future: