summaryrefslogtreecommitdiff
path: root/debuggerd/handler/debuggerd_handler.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2018-07-31 18:28:32 -0700
committerJosh Gao <jmgao@google.com>2018-07-31 18:28:32 -0700
commitdef91c0abff84d6b51db507965cfb5f543538a80 (patch)
tree42451d8d2fc4b4d4b8414e70baaf482ec508fa3c /debuggerd/handler/debuggerd_handler.cpp
parent258d4a91c962b182a6119a69b631269ee7ffba58 (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/debuggerd_handler.cpp')
0 files changed, 0 insertions, 0 deletions