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 <[email protected]>
Commit-Queue: Andrew Lamb <[email protected]>
Reviewed-by: Ben Pastene <[email protected]>
1 file changed