summaryrefslogtreecommitdiff
path: root/libunwindstack/tests/MemoryLocalTest.cpp
diff options
context:
space:
mode:
authorDavid Pursell <dpursell@google.com>2016-02-22 14:27:23 -0800
committerJosh Gao <jmgao@google.com>2016-03-03 15:42:11 -0800
commita76e5f035eeffeb53c6bf0e667fe13625d5ffbac (patch)
treea4da95cd0327015ba8bd5adf8dca946ef901a6d5 /libunwindstack/tests/MemoryLocalTest.cpp
parent263d140895f0e61cda27301a21e4ce18651d4eb4 (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 (cherry picked from commit bfd9503d1dfc652d0497fa1a5994b3d73e296898)
Diffstat (limited to 'libunwindstack/tests/MemoryLocalTest.cpp')
0 files changed, 0 insertions, 0 deletions