diff options
| author | Keith Wall <kwall@apache.org> | 2014-09-06 22:05:30 +0000 |
|---|---|---|
| committer | Keith Wall <kwall@apache.org> | 2014-09-06 22:05:30 +0000 |
| commit | 875e35a15606c41e65b20c62e146cfc2590f1494 (patch) | |
| tree | 1055beef9c76059f44427eb298174d25bcc96dbf /qpid/python | |
| parent | 8452b75e19e470b080e4d663d1e5f017cbc57ad7 (diff) | |
| download | qpid-python-875e35a15606c41e65b20c62e146cfc2590f1494.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@1622948 13f79535-47bb-0310-9956-ffa450edef68
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: |
