Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 156 for Dialer (0.51 sec)

  1. pkg/kube/portforwarder.go

    	if err != nil {
    		return nil, fmt.Errorf("failure creating roundtripper: %v", err)
    	}
    
    	dialer := spdy.NewDialer(upgrader, &http.Client{Transport: roundTripper}, http.MethodPost, serverURL)
    
    	fw, err := portforward.NewOnAddresses(dialer,
    		[]string{f.localAddress},
    		[]string{fmt.Sprintf("%d:%d", f.localPort, f.podPort)},
    		f.stopCh,
    		readyCh,
    		io.Discard,
    		os.Stderr)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 02:12:37 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/config.go

    	ServerList []string
    	// TLS credentials
    	KeyFile       string
    	CertFile      string
    	TrustedCAFile string
    	// function to determine the egress dialer. (i.e. konnectivity server dialer)
    	EgressLookup egressselector.Lookup
    	// The TracerProvider can add tracing the connection
    	TracerProvider oteltrace.TracerProvider
    }
    
    // Config is configuration for creating a storage backend.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. src/net/unixsock_posix.go

    }
    
    func (sd *sysDialer) dialUnix(ctx context.Context, laddr, raddr *UnixAddr) (*UnixConn, error) {
    	ctrlCtxFn := sd.Dialer.ControlContext
    	if ctrlCtxFn == nil && sd.Dialer.Control != nil {
    		ctrlCtxFn = func(ctx context.Context, network, address string, c syscall.RawConn) error {
    			return sd.Dialer.Control(network, address, c)
    		}
    	}
    	fd, err := unixSocket(ctx, sd.network, laddr, raddr, "dial", ctrlCtxFn)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. src/net/mptcpsock_linux_test.go

    		ch <- errors.New("incoming connection is not an MPTCP proto")
    		return
    	}
    }
    
    func dialerMPTCP(t *testing.T, addr string, envVar bool) {
    	d := &Dialer{}
    
    	if envVar {
    		if !d.MultipathTCP() {
    			t.Fatal("MultipathTCP Dialer is not on despite GODEBUG=multipathtcp=1")
    		}
    	} else {
    		if d.MultipathTCP() {
    			t.Error("MultipathTCP should be off by default")
    		}
    
    		d.SetMultipathTCP(true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 00:36:57 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. src/net/udpsock_posix.go

    	}
    }
    
    func (sd *sysDialer) dialUDP(ctx context.Context, laddr, raddr *UDPAddr) (*UDPConn, error) {
    	ctrlCtxFn := sd.Dialer.ControlContext
    	if ctrlCtxFn == nil && sd.Dialer.Control != nil {
    		ctrlCtxFn = func(ctx context.Context, network, address string, c syscall.RawConn) error {
    			return sd.Dialer.Control(network, address, c)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. cni/pkg/pluginlistener/listener_test.go

    	var opts []grpc.DialOption
    
    	opts = append(opts, grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithContextDialer(func(ctx context.Context, addr string) (net.Conn, error) {
    		var d net.Dialer
    		return d.DialContext(ctx, "unix", socket)
    	}))
    
    	conn, err := grpc.Dial(socket, opts...)
    	if err != nil {
    		return nil, err
    	}
    
    	return conn, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 08 21:58:32 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. pkg/uds/listener_test.go

    	var opts []grpc.DialOption
    
    	opts = append(opts, grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithContextDialer(func(ctx context.Context, addr string) (net.Conn, error) {
    		var d net.Dialer
    		return d.DialContext(ctx, "unix", socket)
    	}))
    
    	conn, err := grpc.Dial(socket, opts...)
    	if err != nil {
    		return nil, err
    	}
    
    	return conn, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 16 02:46:58 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  8. src/net/example_test.go

    		go func(c net.Conn) {
    			// Echo all incoming data.
    			io.Copy(c, c)
    			// Shut down the connection.
    			c.Close()
    		}(conn)
    	}
    }
    
    func ExampleDialer() {
    	var d net.Dialer
    	ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
    	defer cancel()
    
    	conn, err := d.DialContext(ctx, "tcp", "localhost:12345")
    	if err != nil {
    		log.Fatalf("Failed to dial: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 13 16:36:59 UTC 2021
    - 8.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/httpstream/httpstream.go

    // NoOpNewStreamHandler is a stream handler that accepts a new stream and
    // performs no other logic.
    func NoOpNewStreamHandler(stream Stream, replySent <-chan struct{}) error { return nil }
    
    // Dialer knows how to open a streaming connection to a server.
    type Dialer interface {
    
    	// Dial opens a streaming connection to a server using one of the protocols
    	// specified (in order of most preferred to least preferred).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  10. src/net/dial_unix_test.go

    			select {
    			case <-sawCancel:
    				t.Logf("saw cancel")
    			case <-time.After(5 * time.Second):
    				t.Errorf("didn't see cancel after 5 seconds")
    			}
    		}
    		return
    	}
    
    	var d Dialer
    	c, err := d.DialContext(ctx, "tcp", ln.Addr().String())
    	if err == nil {
    		c.Close()
    		t.Fatal("unexpected successful dial; want context canceled error")
    	}
    
    	select {
    	case <-ctx.Done():
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 2.8K bytes
    - Viewed (0)
Back to top