Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for maybeSkipKeepAliveTest (0.76 sec)

  1. src/net/tcpconn_keepalive_test.go

    //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || solaris || windows
    
    package net
    
    import (
    	"runtime"
    	"testing"
    )
    
    func TestTCPConnKeepAliveConfigDialer(t *testing.T) {
    	maybeSkipKeepAliveTest(t)
    
    	t.Cleanup(func() {
    		testPreHookSetKeepAlive = func(*netFD) {}
    	})
    	var (
    		errHook error
    		oldCfg  KeepAliveConfig
    	)
    	testPreHookSetKeepAlive = func(nfd *netFD) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/net/tcpconn_keepalive_conf_unix_test.go

    	"testing"
    )
    
    const (
    	syscall_TCP_KEEPIDLE  = syscall.TCP_KEEPIDLE
    	syscall_TCP_KEEPCNT   = syscall.TCP_KEEPCNT
    	syscall_TCP_KEEPINTVL = syscall.TCP_KEEPINTVL
    )
    
    type fdType = int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 490 bytes
    - Viewed (0)
  3. src/net/tcpconn_keepalive_conf_windows_test.go

    )
    
    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)
    	// 	doesn't provide any ways to retrieve the current TCP keep-alive settings, therefore
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:35 UTC 2024
    - 987 bytes
    - Viewed (0)
  4. src/net/tcpconn_keepalive_conf_darwin_test.go

    	"syscall"
    	"testing"
    )
    
    const (
    	syscall_TCP_KEEPIDLE  = syscall.TCP_KEEPALIVE
    	syscall_TCP_KEEPCNT   = sysTCP_KEEPCNT
    	syscall_TCP_KEEPINTVL = sysTCP_KEEPINTVL
    )
    
    type fdType = int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 16:02:18 UTC 2024
    - 430 bytes
    - Viewed (0)
  5. src/net/tcpconn_keepalive_conf_solaris_test.go

    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
    		Interval: 10 * time.Second, // ditto
    		Count:    10,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top