Temporary disable TCP keepalive for Windows, fixes Windows XP support.

This commit is contained in:
XMRig 2017-06-21 21:40:15 +03:00
parent 77d9beaf89
commit 91ed7e36cd

View file

@ -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);
}