Skip to content

Commit f6e19be

Browse files
panjf2000saghul
authored andcommitted
win: rename minimal_windows10_version1709() for libuv's convention
--------- Signed-off-by: Andy Pan <[email protected]>
1 parent 0125043 commit f6e19be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/win/tcp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static int uv__tcp_nodelay(uv_tcp_t* handle, SOCKET socket, int enable) {
5252
/*
5353
* Check if Windows version is 10.0.16299 (Windows 10, version 1709) or later.
5454
*/
55-
static int minimal_windows10_version1709(void) {
55+
static int uv__windows10_version1709(void) {
5656
OSVERSIONINFOW os_info;
5757
if (!pRtlGetVersion)
5858
return 0;
@@ -89,7 +89,7 @@ static int uv__tcp_keepalive(uv_tcp_t* handle,
8989

9090
/* Windows 10, version 1709 (build 10.0.16299) and later require second units
9191
* for TCP keepalive options. */
92-
if (minimal_windows10_version1709()) {
92+
if (uv__windows10_version1709()) {
9393
if (setsockopt(socket,
9494
IPPROTO_TCP,
9595
TCP_KEEPIDLE,
@@ -865,7 +865,7 @@ static int uv__tcp_try_connect(uv_connect_t* req,
865865
* is not reachable, instead of waiting for 2s. We do not care if this fails.
866866
* This only works on Windows version 10.0.16299 and later.
867867
*/
868-
if (minimal_windows10_version1709() && uv__is_loopback(&converted)) {
868+
if (uv__windows10_version1709() && uv__is_loopback(&converted)) {
869869
memset(&retransmit_ioctl, 0, sizeof(retransmit_ioctl));
870870
retransmit_ioctl.Rtt = TCP_INITIAL_RTO_NO_SYN_RETRANSMISSIONS;
871871
retransmit_ioctl.MaxSynRetransmissions = TCP_INITIAL_RTO_NO_SYN_RETRANSMISSIONS;

0 commit comments

Comments
 (0)