From 31546ff3993e7639506330e4e5b522e10438a4cd Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sat, 6 Sep 2025 10:15:18 +0800 Subject: [PATCH] win: rename minimal_windows10_version1709() for libuv's convention --------- Signed-off-by: Andy Pan --- src/win/tcp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/win/tcp.c b/src/win/tcp.c index 5b7604a96..66e005ff0 100644 --- a/src/win/tcp.c +++ b/src/win/tcp.c @@ -52,7 +52,7 @@ static int uv__tcp_nodelay(uv_tcp_t* handle, SOCKET socket, int enable) { /* * Check if Windows version is 10.0.16299 (Windows 10, version 1709) or later. */ -static int minimal_windows10_version1709(void) { +static int uv__windows10_version1709(void) { OSVERSIONINFOW os_info; if (!pRtlGetVersion) return 0; @@ -89,7 +89,7 @@ static int uv__tcp_keepalive(uv_tcp_t* handle, /* Windows 10, version 1709 (build 10.0.16299) and later require second units * for TCP keepalive options. */ - if (minimal_windows10_version1709()) { + if (uv__windows10_version1709()) { if (setsockopt(socket, IPPROTO_TCP, TCP_KEEPIDLE, @@ -865,7 +865,7 @@ static int uv__tcp_try_connect(uv_connect_t* req, * is not reachable, instead of waiting for 2s. We do not care if this fails. * This only works on Windows version 10.0.16299 and later. */ - if (minimal_windows10_version1709() && uv__is_loopback(&converted)) { + if (uv__windows10_version1709() && uv__is_loopback(&converted)) { memset(&retransmit_ioctl, 0, sizeof(retransmit_ioctl)); retransmit_ioctl.Rtt = TCP_INITIAL_RTO_NO_SYN_RETRANSMISSIONS; retransmit_ioctl.MaxSynRetransmissions = TCP_INITIAL_RTO_NO_SYN_RETRANSMISSIONS;