- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getCurrentKeepAliveSettings (0.46 sec)
-
src/net/tcpconn_keepalive_test.go
t.Cleanup(func() { testPreHookSetKeepAlive = func(*netFD) {} }) var ( errHook error oldCfg KeepAliveConfig ) testPreHookSetKeepAlive = func(nfd *netFD) { oldCfg, errHook = getCurrentKeepAliveSettings(fdType(nfd.pfd.Sysfd)) } handler := func(ls *localServer, ln Listener) { for { c, err := ln.Accept() if err != nil { return } c.Close() } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 03:10:07 UTC 2024 - 4.2K bytes - Viewed (0) -
src/net/tcpconn_keepalive_posix_test.go
// license that can be found in the LICENSE file. //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || windows package net import ( "syscall" "testing" "time" ) func getCurrentKeepAliveSettings(fd fdType) (cfg KeepAliveConfig, err error) { tcpKeepAlive, err := syscall.GetsockoptInt(fd, syscall.SOL_SOCKET, syscall.SO_KEEPALIVE) if err != nil { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 16:02:18 UTC 2024 - 2.5K bytes - Viewed (0) -
src/net/tcpconn_keepalive_illumos_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build illumos package net import ( "syscall" "testing" "time" ) func getCurrentKeepAliveSettings(fd fdType) (cfg KeepAliveConfig, err error) { tcpKeepAlive, err := syscall.GetsockoptInt(fd, syscall.SOL_SOCKET, syscall.SO_KEEPALIVE) if err != nil { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:17:21 UTC 2024 - 4K bytes - Viewed (0) -
src/net/tcpconn_keepalive_solaris_test.go
// license that can be found in the LICENSE file. //go:build solaris && !illumos package net import ( "internal/syscall/unix" "syscall" "testing" "time" ) func getCurrentKeepAliveSettings(fd fdType) (cfg KeepAliveConfig, err error) { tcpKeepAlive, err := syscall.GetsockoptInt(fd, syscall.SOL_SOCKET, syscall.SO_KEEPALIVE) if err != nil { return } var ( tcpKeepAliveIdle int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 03:10:07 UTC 2024 - 5.7K bytes - Viewed (0)