summaryrefslogtreecommitdiffstats
path: root/net/socket/tcp_client_socket_libevent.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/socket/tcp_client_socket_libevent.cc')
-rw-r--r--net/socket/tcp_client_socket_libevent.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/socket/tcp_client_socket_libevent.cc b/net/socket/tcp_client_socket_libevent.cc
index ed9d87d..f820955 100644
--- a/net/socket/tcp_client_socket_libevent.cc
+++ b/net/socket/tcp_client_socket_libevent.cc
@@ -528,7 +528,12 @@ int TCPClientSocketLibevent::SetupSocket() {
// This mirrors the behaviour on Windows. See the comment in
// tcp_client_socket_win.cc after searching for "NODELAY".
DisableNagle(socket_); // If DisableNagle fails, we don't care.
+
+ // ANDROID: Disable TCP keep-alive for bug 5226268
+ // [Browser] http keep-alive packets are sent too frequently to network
+#ifndef ANDROID
SetTCPKeepAlive(socket_);
+#endif
#ifdef ANDROID
if (valid_uid_)