summaryrefslogtreecommitdiff
path: root/libutils/RefBase.cpp
diff options
context:
space:
mode:
authorDavid Pursell <dpursell@google.com>2016-02-22 14:27:23 -0800
committerDavid Pursell <dpursell@google.com>2016-02-23 09:11:18 -0800
commitbfd9503d1dfc652d0497fa1a5994b3d73e296898 (patch)
tree48d3cb7e05642aed71378f2860a9a87a7a02ade3 /libutils/RefBase.cpp
parentd633106d3e43a77bb509ce1cf259b14f78f246ae (diff)
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
Diffstat (limited to 'libutils/RefBase.cpp')
0 files changed, 0 insertions, 0 deletions