summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2018-03-19 13:20:29 -0700
committerJosh Gao <jmgao@google.com>2018-03-28 23:36:28 -0700
commit7c87b0739a537bc5efc265bc6f9fc05de2114371 (patch)
tree4619c659f8014657ab961812de74f0b3796f5335 /base/errors_unix.cpp
parent3b0146cc3750c51720774ff9aa7a9e398fe79faa (diff)
adb: don't immediately close a socket when write fails.
When we fail to write to a local socket peer, we might still have data queued up to send to the other side. Defer closing the socket until we've failed to both read and write. Bug: http://b/74616284 Test: python test_device.py Change-Id: Ifc4b8fe95369b4872e475c2ae4ee611dd2d8b9d7 (cherry picked from commit 184f4805476af19c2e58dd96c2ce6aa241efaacf)
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions