Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 260 for dialIP (0.1 sec)

  1. src/net/http/transport.go

    	// Dial specifies the dial function for creating unencrypted TCP connections.
    	//
    	// Dial runs concurrently with calls to RoundTrip.
    	// A RoundTrip call that initiates a dial may end up using
    	// a connection dialed previously when the earlier connection
    	// becomes idle before the later Dial completes.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  2. src/net/timeout_test.go

    				delay := afterDial.Sub(beforeDial)
    				if delay < d.Timeout {
    					t.Errorf("Dial returned after %v; want ≥%v", delay, d.Timeout)
    				}
    			}
    
    			if perr := parseDialError(err); perr != nil {
    				t.Errorf("unexpected error from Dial: %v", perr)
    			}
    			if nerr, ok := err.(Error); !ok || !nerr.Timeout() {
    				t.Errorf("Dial: %v, want timeout", err)
    			}
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 18:06:55 UTC 2024
    - 30K bytes
    - Viewed (0)
  3. pkg/kubelet/pluginmanager/pluginwatcher/example_handler.go

    	p.m.Lock()
    	defer p.m.Unlock()
    
    	v, ok := p.ExpectedNames[pluginName]
    	if !ok {
    		v = -1
    	}
    
    	return v, ok
    }
    
    // Dial establishes the gRPC communication with the picked up plugin socket. https://godoc.org/google.golang.org/grpc#Dial
    func dial(unixSocketPath string, timeout time.Duration) (registerapi.RegistrationClient, *grpc.ClientConn, error) {
    	ctx, cancel := context.WithTimeout(context.Background(), timeout)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 12:00:49 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/egressselector/egress_selector.go

    		var d net.Dialer
    		c, err := d.DialContext(ctx, "unix", udsName)
    		if err != nil {
    			klog.Errorf("failed to create connection to uds name %s, error: %v", udsName, err)
    		}
    		return c, err
    	})
    
    	// CreateSingleUseGrpcTunnel() unfortunately couples dial and connection contexts. Because of that,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/devicemanager/plugin/v1beta1/client.go

    }
    
    func (c *client) API() api.DevicePluginClient {
    	return c.client
    }
    
    func (c *client) SocketPath() string {
    	return c.socket
    }
    
    // dial establishes the gRPC communication with the registered device plugin. https://godoc.org/google.golang.org/grpc#Dial
    func dial(unixSocketPath string) (api.DevicePluginClient, *grpc.ClientConn, error) {
    	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
    	defer cancel()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 21:35:13 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  6. cni/pkg/pluginlistener/listener_test.go

    	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. src/net/unixsock_posix.go

    	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 {
    		return nil, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. src/net/net_test.go

    	serverDone := make(chan struct{})
    	dialed := make(chan struct{})
    	go func() {
    		defer close(serverDone)
    
    		cs, err := ln.Accept()
    		if err != nil {
    			return
    		}
    		<-dialed
    		cs.(*TCPConn).SetLinger(0)
    		cs.Close()
    	}()
    	defer func() {
    		ln.Close()
    		<-serverDone
    	}()
    
    	ss, err := Dial("tcp", ln.Addr().String())
    	close(dialed)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 21:04:44 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. test/stress/runstress.go

    	if *v {
    		log.Println(a...)
    	}
    }
    
    func dialStress(a net.Addr) {
    	for {
    		d := net.Dialer{Timeout: time.Duration(rand.Intn(1e9))}
    		c, err := d.Dial("tcp", a.String())
    		if err == nil {
    			Println("did dial")
    			go func() {
    				time.Sleep(time.Duration(rand.Intn(500)) * time.Millisecond)
    				c.Close()
    				Println("closed dial")
    			}()
    		}
    		// Don't run out of ephemeral ports too quickly:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:21:35 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. pkg/client/tests/portfoward_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    			url, _ := url.Parse(server.URL)
    			dialer := spdy.NewDialer(upgrader, &http.Client{Transport: transport}, "POST", url)
    
    			stopChan := make(chan struct{}, 1)
    			readyChan := make(chan struct{})
    
    			pf, err := New(dialer, test.ports, stopChan, readyChan, os.Stdout, os.Stderr)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 06:08:18 UTC 2023
    - 7.1K bytes
    - Viewed (0)
Back to top