summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-11-20 22:01:06 -0800
committerElliott Hughes <enh@google.com>2015-11-20 22:01:06 -0800
commitcc65c3b9f8edc6fb48ffe725376e65fac42851d6 (patch)
treed2e5939de458d3257d172deaa5da9279fb8915f5 /base/errors_unix.cpp
parentddf41f1ad0bc5fbe4a09fbcfde74492a51a705cf (diff)
Fix "adb sync" (and "adb push") error reporting.
This patch ensures that we read any error response from the server if the server closes the connection. Unfortunately, that's not sufficient to ensure that we always see the server's error message --- sometimes the data just gets thrown away because we keep writing without reading. Setting SO_LINGER avoids this. Bug: http://b/25230872 Change-Id: I96c019cc72bd139198de79bf29e6536cc462c20f
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions