OSDN Git Service

Use IPv4 for Android connections
authorEmre Kultursay <emrekultursay@google.com>
Wed, 20 May 2020 09:11:12 +0000 (11:11 +0200)
committerPavel Labath <pavel@labath.sk>
Wed, 20 May 2020 09:32:03 +0000 (11:32 +0200)
commita9d7b458c094d62a8c11ada11e39bf0d4da596c8
tree1141ec728fa121ba6aedb88e2767f4510e1169cc
parent56de738d18e11c86169f0248b97b2854c37e35ce
Use IPv4 for Android connections

Summary:
When adb client connects to adb server, or when lldb connects to
lldb server on Android device, IPv6 does not work (at least on
Windows it does not work).

For Android on Windows, each IPv6 failure (fallback-to-IPv4) wastes
2 seconds, and since this is called 5 times when attaching, LLDB
is wasting 10 seconds. This CL brings a big improvement to attach latency.

Reviewers: labath

Reviewed By: labath

Subscribers: aadsm, clayborg, mgrang, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D79757
lldb/source/Plugins/Platform/Android/AdbClient.cpp
lldb/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp