summaryrefslogtreecommitdiff
path: root/libutils/String8_fuzz.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2020-09-08 17:40:22 -0700
committerJosh Gao <jmgao@google.com>2020-09-08 18:07:47 -0700
commit1b65ebe2e0880e27ac3de4a8fdead6b0dd583b9e (patch)
tree15afe6d1a1de9ce3653895bf7a29210fc33ef004 /libutils/String8_fuzz.cpp
parentef2c28bf7185865d51b219aa693925cb348257cc (diff)
adb: fix `push --sync` with multiple inputs.
Previously, when push --sync was used with multiple files, we tried to stat a remote file with pending acknowledgements still in the socket buffer, which leads to an abort when we read ID_OKAY instead of the response we were expecting. This patch changes the behavior to always wait for acknowledgements if we're pushing with --sync (or `adb sync`). This results in a ~100ms regression during a 10 second sync of every file on the system image, but that's not very much, so perhaps we should consider doing this always. Bug: http://b/166155032 Test: test_device.py Change-Id: I7110243071ba5fbaa77dcc76f42a19d9ed2b4195
Diffstat (limited to 'libutils/String8_fuzz.cpp')
0 files changed, 0 insertions, 0 deletions