- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 756 for fdType (0.6 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
//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_conf_windows_test.go
"syscall" "testing" ) const ( syscall_TCP_KEEPIDLE = windows.TCP_KEEPIDLE syscall_TCP_KEEPCNT = windows.TCP_KEEPCNT syscall_TCP_KEEPINTVL = windows.TCP_KEEPINTVL ) type fdType = syscall.Handle func maybeSkipKeepAliveTest(t *testing.T) { // TODO(panjf2000): Unlike Unix-like OS's, old Windows (prior to Windows 10, version 1709)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 11:49:35 UTC 2024 - 987 bytes - Viewed (0) -
src/net/tcpconn_keepalive_conf_darwin_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 16:02:18 UTC 2024 - 430 bytes - Viewed (0) -
src/net/tcpconn_keepalive_conf_unix_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 03:10:07 UTC 2024 - 490 bytes - Viewed (0) -
src/net/splice_linux_test.go
t.Fatalf("unknown fdType %q", fdType) } if err := rc.Control(func(fd uintptr) { if hook.called && hookFd != int(fd) { t.Fatalf("wrong %s file descriptor: got %d, want %d", fdType, hook.dstfd, int(fd)) } }); err != nil { t.Fatalf("syscall.RawConn.Control error: %v", err) } } func (tc spliceTestCase) testFile(t *testing.T) { hook := hookSplice(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 14.5K bytes - Viewed (0) -
src/net/tcpconn_keepalive_illumos_test.go
// 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_conf_solaris_test.go
package net import ( "testing" "time" ) const ( syscall_TCP_KEEPIDLE = sysTCP_KEEPIDLE syscall_TCP_KEEPCNT = sysTCP_KEEPCNT syscall_TCP_KEEPINTVL = sysTCP_KEEPINTVL ) type fdType = int func maybeSkipKeepAliveTest(_ *testing.T) {} var testConfigs = []KeepAliveConfig{ { Enable: true, Idle: 20 * time.Second, // the minimum value is ten seconds on Solaris
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 03:10:07 UTC 2024 - 1.8K 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) -
tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/ref-while-loop.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 28 12:06:33 UTC 2022 - 2.4K bytes - Viewed (0)