Go to file
David Pursell a76e5f035e adb: use TCP keepalive.
Currently adb only realizes a TCP transport has gone away when it tries
to send a packet, which caused problems in particular for `adb reboot`
since no packets are sent, leading to the client hanging until Ctrl+C.

This CL turns on TCP keepalive packets to send 1 packet every second,
allowing up to 10 failures before disconnecting. Using built-in TCP
functionality turns out to be much cleaner in this case than trying to
implement our own keepalive packets at the application layer, and
should be more lightweight since it's all done in the TCP stack.

Bug: http://b/23093474

Change-Id: Ifb41cbb85b9752a9f394e1eed3c6ac4da47a4e4d
(cherry picked from commit bfd9503d1d)
2016-03-03 15:42:11 -08:00
adb adb: use TCP keepalive. 2016-03-03 15:42:11 -08:00
adf Adf: Remove unused variable 2015-07-27 22:08:16 -07:00
base Merge "Revert "Introduce unique_fd"" into nyc-dev 2016-03-03 21:47:14 +00:00
bootstat bootstat: Record the time since factory reset on init. 2016-02-24 13:19:46 -08:00
cpio fs_config: replace getenv('OUT') by new fs_config parameter 2015-07-09 21:47:07 -07:00
crash_reporter crash_reporter_tests: Compile only on 'eng' builds. 2016-02-04 13:56:25 -08:00
debuggerd Merge "Newer kernels added SEGV_BNDERR." 2016-02-05 02:20:13 +00:00
fastboot fastboot: fix TCP protocol version check. 2016-02-17 13:22:40 -08:00
fingerprintd Fingerprint: Plumb enumerate support. 2015-12-04 10:07:55 -08:00
fs_mgr Revert "Revert "Update make_ext4fs_internal param-list to match new implementation"" 2016-02-19 20:40:22 -08:00
gatekeeperd Merge "Track rename of base/ to android-base/." am: 912ed3d8ca am: e2a9563be1 2015-12-07 23:59:44 +00:00
healthd healthd: Correct the scaling factor for maxVoltage and maxCurrent. 2016-02-26 10:09:28 -08:00
include Merge "Fix windows 64-bit builds" into nyc-dev 2016-02-26 23:34:39 +00:00
init init: harden socket creation against symlinks 2016-02-24 15:50:52 -08:00
libbacktrace Revert "Do not do local unwinds through .oat or .dex maps." 2016-03-02 13:20:35 -08:00
libbinderwrapper libbinderwrapper: Add BinderWrapper::GetOrCreateInstance() 2016-01-04 12:56:27 -08:00
libcutils Merge "Mount schedTune cgroup as /dev/stune" into nyc-dev 2016-02-26 17:35:50 +00:00
libdiskconfig am eb075e28: am c8179498: am 2f62edf7: Merge "libdiskconfig: Turn on -Werror" 2014-05-21 21:19:27 +00:00
libion am 8d2cd035: am 2ddb9cb1: am ed43be39: Merge "Remove LOCAL_ADDITIONAL_DEPENDENCIES in cases where it\'s not needed." 2015-04-02 22:07:16 +00:00
liblog Fix windows 64-bit builds 2016-02-25 18:43:55 -08:00
libmemtrack Remove a hack for getting libpagerank's headers. 2015-09-22 22:35:30 -07:00
libmemunreachable libmemunreachable: fix long timeout on error 2016-02-19 14:06:13 -08:00
libmincrypt Enable clang compilation. 2015-05-14 10:53:48 -07:00
libnativebridge Revert "nativebrige: log code_cache access errors to stderr as well" 2016-01-27 17:53:20 +00:00
libnativeloader Fix locking of libnativeloader 2016-02-29 13:21:43 -08:00
libnetutils Delete dhcpcd code in system/core, since dhcpcd is no more. 2016-02-25 16:04:43 +09:00
libpackagelistparser packagelistparser: rename to libpackagelistparser 2015-11-05 12:12:38 -08:00
libpixelflinger Use dlmalloc from external/dlmalloc instead of bionic/. 2016-01-22 11:04:35 -08:00
libprocessgroup Fix libprocessgroup SELinux denials. 2016-02-08 11:45:27 +01:00
libsparse Fix static analyzer issues caught by clang 2016-02-01 11:19:26 -08:00
libsuspend Adds a parameter to the wakeup_callback to report sucessful wakeup or suspend aborts. 2015-06-25 13:15:22 -07:00
libsync Fix isValid() condition for libsync tests 2015-11-05 10:07:53 -08:00
libsysutils Tolerate RTM_DELADDR messages from deleted interfaces. 2016-02-16 23:12:26 +09:00
libusbhost libusbhost: add usb_device_reset 2016-01-13 16:01:42 -08:00
libutils Fix windows 64-bit builds 2016-02-25 18:43:55 -08:00
libziparchive Allow setting an arbitrary alignment for an entry. 2016-01-19 13:55:53 -08:00
lmkd lmkd: subscribe to low mempressure events. 2016-02-09 11:25:18 +01:00
logcat logcat: build cleanup 2016-02-04 13:10:19 -08:00
logd logd: check return values 2016-03-02 11:37:21 -08:00
logwrapper am eaf04aa0: am 3b94cef1: Merge "Add FORK_EXECVP_OPTION_CAPTURE_OUTPUT to logwrap.h" 2015-08-22 02:40:51 +00:00
metricsd Merge "metricsd: Create a brillo::MessageLoop." 2016-02-04 23:38:54 +00:00
mkbootimg mkbootimg: misc typo fixes 2015-06-04 09:59:01 -07:00
reboot reboot: Turn on -Werror 2014-05-21 12:58:38 -07:00
rootdir mkdir /data/misc/cameraserver for AVD's camera HALs 2016-03-01 22:44:59 +00:00
run-as Fix the run-as environment to better match su. 2015-11-03 14:31:46 -08:00
sdcard Merge "[DO NOT MERGE] Use FUSE_SHORTCIRCUIT if available" into mnc-dr1.5-dev am: b84295d027 2016-01-14 00:52:50 +00:00
toolbox Make toolbox top a little more like everyone else's. 2016-03-02 08:42:18 -08:00
trusty [core][trusty] add gatekeeper module 2015-11-12 12:19:48 -08:00
tzdatacheck Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
.gitignore Ignore adb/*.pyc files 2015-08-11 12:59:58 -07:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:12:32 -07:00
CleanSpec.mk Add a CleanSpec for grep/toolbox. 2015-03-22 18:04:54 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
NOTICE Fix omission in NOTICE file. 2013-07-30 13:56:55 -07:00