diff options
author | Josh Gao <jmgao@google.com> | 2018-07-31 18:28:32 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2018-07-31 18:28:32 -0700 |
commit | def91c0abff84d6b51db507965cfb5f543538a80 (patch) | |
tree | 42451d8d2fc4b4d4b8414e70baaf482ec508fa3c /debuggerd/handler | |
parent | 258d4a91c962b182a6119a69b631269ee7ffba58 (diff) |
adb: disable ReconnectHandler in adbd.
Previously, when a TCP connection was disconnected from adbd, we were
registering it with ReconnectHandler, which led to the transport
sticking around after the socket was closed. Due to the naming of
TCP transports in adbd (host-<fd number>), this results in incoming
connections being immediately closed if their file descriptor number
ends up being the same as a TCP transport that had previously
disconnected.
Guard all of the reconnect logic with ADB_HOST, to fix this.
Bug: http://b/112054041
Test: while true; do adb connect <device>; adb connect <device>; adb shell true; done
Change-Id: Ib55d304d7e07d6d744e8321d34671bb6d4b91afe
Diffstat (limited to 'debuggerd/handler')
0 files changed, 0 insertions, 0 deletions