diff options
Diffstat (limited to 'qpid/python')
| -rw-r--r-- | qpid/python/qpid/peer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/python/qpid/peer.py b/qpid/python/qpid/peer.py index 95055cc014..40571780f1 100644 --- a/qpid/python/qpid/peer.py +++ b/qpid/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: |
