commit | eaf16c5467cd99eaa2fbba3d6b2992ad943b540f | [log] [tgz] |
---|---|---|
author | Andrew Lamb <andrewlamb@chromium.org> | Mon Dec 09 23:39:28 2024 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Dec 09 23:39:28 2024 |
tree | c790e43eb7c1cd3724b505b8ca8914a5e77dfb16 | |
parent | 23d5a3964444c048ad34939e8a3c41b6bda4818e [diff] |
Loop to read all data in TcpHandle.BulkRead. - The length argument to recv is the maximum amount of data to receive from the socket, but it doesn't guarantee that all data is available (https://docs.python.org/3/library/socket.html#socket.socket.recv). Loop until all data is read. Bug: 368004900 Change-Id: Iffce520983a21e0ee06fecb43e85e29ef6459bfd Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/python-adb/+/6076227 Reviewed-by: Haiyang Pan <hypan@google.com> Commit-Queue: Andrew Lamb <andrewlamb@chromium.org> Reviewed-by: Ben Pastene <bpastene@chromium.org>