android_system_core/libcutils
Tao Wu 9b7341fe57 We should break from loop after getting connected.
Now it always connects to multiple address of same host and just
return one socket while other sockets get leaked.

Also, it cause trouble on machine with dual stack.
adb connect localhost:* just connect to IPv4 and IPv6 at same time
and finally it doesn't work since emulator can only handle one adb
connection.

To test this, start an emulator with non-standar port and killall adb
daemon on linux work station and then do following test.

Test: adb connect localhost:12345;lsof -n -p `pgrep adb`
Change-Id: I1e0f6824efc1db8e179377de068e3b5535aff3f7
2016-09-21 19:45:54 -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
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 Tag hostapd binary with CAP_NET_ADMIN | CAP_NET_RAW 2016-09-07 13:30:23 -07: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
MODULE_LICENSE_APACHE2 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
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08: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 We should break from loop after getting connected. 2016-09-21 19:45:54 -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