From 91ed7e36cd109714ed2c7bdace4986984a7ad34e Mon Sep 17 00:00:00 2001 From: XMRig Date: Wed, 21 Jun 2017 21:40:15 +0300 Subject: [PATCH] Temporary disable TCP keepalive for Windows, fixes Windows XP support. --- src/net/Client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net/Client.cpp b/src/net/Client.cpp index 8dd8051ee..e56531f19 100644 --- a/src/net/Client.cpp +++ b/src/net/Client.cpp @@ -261,7 +261,10 @@ void Client::connect(struct sockaddr *addr) uv_tcp_init(uv_default_loop(), m_socket); uv_tcp_nodelay(m_socket, 1); + +# ifndef WIN32 uv_tcp_keepalive(m_socket, 1, 60); +# endif uv_tcp_connect(req, m_socket, (const sockaddr*) addr, Client::onConnect); }