diff options
| author | Josh Gao <jmgao@google.com> | 2018-03-30 14:05:40 -0700 |
|---|---|---|
| committer | Josh Gao <jmgao@google.com> | 2018-04-02 14:18:50 -0700 |
| commit | 7651eb9ef743e92fb68897f81cb06dc8c4553504 (patch) | |
| tree | 1796fdc42b31bbb6fe15d34511c246f93468f531 /base/errors_unix.cpp | |
| parent | 954e1280d7d6244c659896fb6c6b415e40865133 (diff) | |
adb: try harder to fill our test sockets.
On platforms that implement sockets via underlying sockets (e.g. Wine),
a socket can appear to be full, and then become available for writes
again without read being called on the other end. Add a sleep after
each write to give the underlying implementation time to flush.
This doesn't help us if the buffer size is smaller than MAX_PAYLOAD,
but at least in the case of Wine, that doesn't seem to be the case.
Test: adb_test
Test: wine adb_test.exe
Change-Id: Iff1ec14bbf318b9742ec7e2fb72e34e3d6bbe6ad
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
