Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Windows: use SO_KEEPALIVE instead of TCP_KEEPALIVE
Browse files Browse the repository at this point in the history
MinGW doesn't understand the latter. Closes GH-228.
  • Loading branch information
luislavena authored and piscisaureus committed Oct 28, 2011
1 parent ed2b5e6 commit 99b512e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/win/tcp.c
Expand Up @@ -71,7 +71,7 @@ static int uv__tcp_keepalive(uv_tcp_t* handle, SOCKET socket, int enable, unsign

if (enable && setsockopt(socket,
IPPROTO_TCP,
TCP_KEEPALIVE,
SO_KEEPALIVE,
(const char*)&delay,
sizeof delay) == -1) {
uv__set_sys_error(handle->loop, errno);
Expand Down Expand Up @@ -1068,4 +1068,4 @@ int uv_tcp_duplicate_socket(uv_tcp_t* handle, int pid,
}

return 0;
}
}

0 comments on commit 99b512e

Please sign in to comment.