commit | e69060b7926415fab2b4432291c61aae129c96ff | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Mar 19 13:20:29 2018 -0700 |
committer | Josh Gao <jmgao@google.com> | Wed Mar 28 23:36:28 2018 -0700 |
tree | 7fda1f9168cec51431cbe2954185980ff76f0c0e | |
parent | 58ff0a23d2dacc6986b6a60e43df48ea3eaff1a3 [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 4b80850ae52fe0b7006b05518aa04aa623842f0c)