platform_system_core/libcutils
Josh Gao 78cc20f007 libcutils: try all addresses in socket_network_client_timeout.
If a connection fails to an address that resolves to multiple
sockaddrs, attempt connecting to subsequent addresses if the initial
connection fails to a reason other than timeout. This is primarily
useful for localhost, which can resolve to both an IPv4 and and IPv6
address.

Also, add an adb test to verify that this behavior.

Bug: http://b/30313466
Change-Id: Ib2df706a66cf6ef8c1097fdfd7aedb69b8df2d6e
Test: python test_adb.py (+ the test fails before this patch)
2016-09-01 15:56:58 -07:00
..
arch-arm Switch arch-arm/memset32.S to unified syntax. 2015-05-11 22:22:13 -07:00
arch-arm64 Add android_memset16/android_memset32 for aarch64. 2014-06-23 19:28:33 -07:00
arch-mips android_memset.c: Use sanitized shifts 2015-08-27 14:32:17 -07:00
arch-x86 Clean up memset[16,32] routines: unify files names, remove redundant wrapper 2014-09-17 18:11:18 +04:00
arch-x86_64 Clean up memset[16,32] routines: unify files names, remove redundant wrapper 2014-09-17 18:11:18 +04:00
tests libcutils: add sched_policy test 2016-08-03 23:31:50 +00:00
Android.bp Remove process_name.c 2016-08-18 23:54:46 +00:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
android_reboot.c Use fsck.f2fs -a instead of -f for faster boot 2015-07-15 10:13:51 -07:00
ashmem-dev.c libcutils: Add ashmem_valid() function 2016-08-23 15:29:28 -07:00
ashmem-host.c Don't expose ashmem constants on the host. 2016-05-13 14:47:30 -07:00
canned_fs_config.c libcutils: canned_fs_config.c drop tabs 2016-07-06 10:45:11 -07:00
config_utils.c Config utils improvement 2011-05-26 13:57:03 -07:00
debugger.c Don't use TEMP_FAILURE_RETRY on close in system/core. 2015-05-27 13:27:06 -07:00
dlmalloc_stubs.c Fix libcutils/dlmalloc_stubs.c build breakage. 2014-06-03 20:48:44 -07:00
fs.c Add utility to prepare files in a similar way to directories 2016-05-24 18:19:12 +01:00
fs_config.c Add /vendor/xbin to the list of directories of executables 2016-05-27 17:37:53 +09:00
hashmap.c libcutils: cleanups for -fsanitize=integer 2015-08-26 10:40:00 -07:00
iosched_policy.c Add ioprio values directly. 2016-07-18 17:01:05 -07:00
klog.cpp Fix early init logging. 2016-07-26 09:32:33 -07:00
load_file.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
multiuser.c Create profiles folders 2016-02-19 13:42:37 +00:00
native_handle.c Prevent integer overflow when allocating native_handle_t 2015-05-15 13:09:39 -07:00
open_memstream.c Remove dead code. 2014-11-08 11:32:07 -08:00
partition_utils.c libcutils: turn on -Werror 2014-05-01 17:58:17 -07:00
properties.c Remove loghack.h. 2015-02-21 09:46:31 +00:00
qtaguid.c Merge "Turn off duplicate log" into nyc-dev 2016-03-24 23:34:07 +00:00
record_stream.c Use _WIN32 rather than HAVE_WINSOCK. 2015-07-29 17:45:24 -07:00
sched_policy.c Fix access check 2016-08-26 14:05:03 -07:00
socket_inaddr_any_server_unix.c libcutils: share Windows networking code. 2016-01-15 15:57:35 -08:00
socket_inaddr_any_server_windows.c libcutils: share Windows networking code. 2016-01-15 15:57:35 -08:00
socket_local_client_unix.c libcutils: share Windows networking code. 2016-01-15 15:57:35 -08:00
socket_local_server_unix.c libcutils: share Windows networking code. 2016-01-15 15:57:35 -08:00
socket_local_unix.h libcutils: share Windows networking code. 2016-01-15 15:57:35 -08:00
socket_loopback_client_unix.c libcutils: share Windows networking code. 2016-01-15 15:57:35 -08:00
socket_loopback_server_unix.c libcutils: share Windows networking code. 2016-01-15 15:57:35 -08:00
socket_network_client_unix.c libcutils: try all addresses in socket_network_client_timeout. 2016-09-01 15:56:58 -07:00
socket_network_client_windows.c libcutils: share Windows networking code. 2016-01-15 15:57:35 -08:00
sockets.cpp libcutils: add socket_get_local_port(). 2016-02-02 09:52:02 -08:00
sockets_unix.cpp libcutils/fastboot: improve multi-buffer write. 2016-02-03 10:01:38 -08:00
sockets_windows.cpp libcutils/fastboot: improve multi-buffer write. 2016-02-03 10:01:38 -08:00
str_parms.c Suppress false positive memory leak warnings. 2016-02-04 16:38:04 -08:00
strdup8to16.c Fix misc-macro-parentheses warnings in init and other core modules. 2016-05-18 18:11:49 -07:00
strdup16to8.c strdup16to8.c: fix benign integer underflow. 2015-08-27 10:30:50 -07:00
strlcpy.c Fix Windows strlcpy.c build. 2015-04-02 17:21:47 -07:00
threads.c Remove libbacktrace definition of gettid. 2015-05-13 13:44:34 -07:00
trace-dev.c atrace: read package names from multiple sysprops 2016-04-29 10:56:41 -07:00
trace-host.c Move trace.h to stdatomic. 2015-04-16 10:41:16 -07:00
uevent.c More SOCK_CLOEXEC 2015-02-26 13:32:52 -08:00