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>
1 file changed