commit | cc65c3b9f8edc6fb48ffe725376e65fac42851d6 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Nov 20 22:01:06 2015 -0800 |
committer | Elliott Hughes <enh@google.com> | Fri Nov 20 22:01:06 2015 -0800 |
tree | d2e5939de458d3257d172deaa5da9279fb8915f5 | |
parent | ddf41f1ad0bc5fbe4a09fbcfde74492a51a705cf [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