[all-commits] [llvm/llvm-project] a9d7b4: Use IPv4 for Android connections

Emre Kultursay via All-commits all-commits at lists.llvm.org
Wed May 20 02:33:14 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a9d7b458c094d62a8c11ada11e39bf0d4da596c8
      https://github.com/llvm/llvm-project/commit/a9d7b458c094d62a8c11ada11e39bf0d4da596c8
  Author: Emre Kultursay <emrekultursay at google.com>
  Date:   2020-05-20 (Wed, 20 May 2020)

  Changed paths:
    M lldb/source/Plugins/Platform/Android/AdbClient.cpp
    M lldb/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list