Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 613 for dial (0.37 sec)

  1. src/net/net_windows_test.go

    		if ok && ignoreSomeReadErrors && (errno == syscall.ERROR_NETNAME_DELETED || errno == syscall.WSAECONNRESET) {
    			return "", nil
    		}
    		return "", err
    	}
    
    	send := func(addr string, data string) error {
    		c, err := Dial("tcp", addr)
    		if err != nil {
    			return err
    		}
    		defer c.Close()
    
    		b := []byte(data)
    		n, err := c.Write(b)
    		if err != nil {
    			return err
    		}
    		if n != len(b) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  2. src/context/example_test.go

    			return n, ctx.Err()
    		}
    		return n, err
    	}
    
    	listener, err := net.Listen("tcp", ":0")
    	if err != nil {
    		fmt.Println(err)
    		return
    	}
    	defer listener.Close()
    
    	conn, err := net.Dial(listener.Addr().Network(), listener.Addr().String())
    	if err != nil {
    		fmt.Println(err)
    		return
    	}
    	defer conn.Close()
    
    	ctx, cancel := context.WithTimeout(context.Background(), 1*time.Millisecond)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 20:24:28 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  3. pkg/kubeapiserver/authorizer/config.go

    	WebhookRetryBackoff *wait.Backoff
    
    	VersionedInformerFactory versionedinformers.SharedInformerFactory
    
    	// Optional field, custom dial function used to connect to webhook
    	CustomDial utilnet.DialFunc
    
    	// ReloadFile holds the filename to reload authorization configuration from
    	ReloadFile string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. pkg/test/echo/server/forwarder/http.go

    			AllowHTTP: true,
    			// Pretend we are dialing a TLS endpoint. (Note, we ignore the passed tls.Config)
    			DialTLSContext: func(ctx context.Context, network, addr string, _ *tls.Config) (net.Conn, error) {
    				return newDialer(cfg).Dial(network, addr)
    			},
    		}
    	}
    	closeFn := func(conn *http2.Transport) func() {
    		return conn.CloseIdleConnections
    	}
    	noCloseFn := func() {}
    
    	if cfg.newConnectionPerRequest {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. src/net/ipsock_posix.go

    //     "udp", with a wildcard address: If the platform supports
    //     both IPv6 and IPv4-mapped IPv6 communication capabilities,
    //     or does not support IPv4, we use a dual stack, AF_INET6 and
    //     IPV6_V6ONLY=0, wildcard address listen. The dual stack
    //     wildcard address listen may fall back to an IPv6-only,
    //     AF_INET6 and IPV6_V6ONLY=1, wildcard address listen.
    //     Otherwise we prefer an IPv4-only, AF_INET, wildcard address
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  6. pkg/kubeapiserver/authorizer/reload.go

    type reloadableAuthorizerResolver struct {
    	// initialConfig holds the ReloadFile used to initiate background reloading,
    	// and information used to construct webhooks that isn't exposed in the authorization
    	// configuration file (dial function, backoff settings, etc)
    	initialConfig Config
    
    	apiServerID string
    
    	reloadInterval         time.Duration
    	requireNonWebhookTypes sets.Set[authzconfig.AuthorizerType]
    
    	nodeAuthorizer *node.NodeAuthorizer
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/watch_test.go

    	dest.Path = "/" + prefix + "/" + testGroupVersion.Group + "/" + testGroupVersion.Version + "/watch/simples"
    	dest.RawQuery = ""
    
    	ws, err := websocket.Dial(dest.String(), "", "http://localhost")
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	try := func(action watch.EventType, object runtime.Object) {
    		// Send
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 30 17:27:39 UTC 2023
    - 30K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/net/nettest/nettest.go

    func SupportsRawSocket() bool {
    	stackOnce.Do(probeStack)
    	return rawSocketSess
    }
    
    // TestableNetwork reports whether network is testable on the current
    // platform configuration.
    //
    // See func Dial of the standard library for the supported networks.
    func TestableNetwork(network string) bool {
    	ss := strings.Split(network, ":")
    	switch ss[0] {
    	case "ip+nopriv":
    		// This is an internal network name for testing on the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. src/net/udpsock_posix.go

    			return sd.Dialer.Control(network, address, c)
    		}
    	}
    	fd, err := internetSocket(ctx, sd.network, laddr, raddr, syscall.SOCK_DGRAM, 0, "dial", ctrlCtxFn)
    	if err != nil {
    		return nil, err
    	}
    	return newUDPConn(fd), nil
    }
    
    func (sl *sysListener) listenUDP(ctx context.Context, laddr *UDPAddr) (*UDPConn, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. internal/http/listener_test.go

    					continue nextTest
    				}
    				t.Fatalf("Test %d: error: expected = <nil>, got = %v", i+1, err)
    			}
    		}
    
    		for _, serverAddr := range listener.Addrs() {
    			conn, err := net.Dial("tcp", serverAddr.String())
    			if err != nil {
    				t.Fatalf("Test %d: error: expected = <nil>, got = %v", i+1, err)
    			}
    			conn.Close()
    		}
    
    		listener.Close()
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top