Source file
src/net/tcpconn_keepalive_conf_windows_test.go
1
2
3
4
5
6
7 package net
8
9 import (
10 "internal/syscall/windows"
11 "syscall"
12 "testing"
13 )
14
15 const (
16 syscall_TCP_KEEPIDLE = windows.TCP_KEEPIDLE
17 syscall_TCP_KEEPCNT = windows.TCP_KEEPCNT
18 syscall_TCP_KEEPINTVL = windows.TCP_KEEPINTVL
19 )
20
21 type fdType = syscall.Handle
22
23 func maybeSkipKeepAliveTest(t *testing.T) {
24
25
26
27
28 if !windows.SupportTCPKeepAliveIdle() || !windows.SupportTCPKeepAliveInterval() || !windows.SupportTCPKeepAliveCount() {
29 t.Skip("skipping on windows")
30 }
31 }
32
View as plain text