Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 613 for dial (0.06 sec)

  1. src/net/unixsock.go

    	}
    	return
    }
    
    func newUnixConn(fd *netFD) *UnixConn { return &UnixConn{conn{fd}} }
    
    // DialUnix acts like [Dial] for Unix networks.
    //
    // The network must be a Unix network name; see func Dial for details.
    //
    // If laddr is non-nil, it is used as the local address for the
    // connection.
    func DialUnix(network string, laddr, raddr *UnixAddr) (*UnixConn, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. src/net/lookup.go

    // dial makes a new connection to the provided server (which must be
    // an IP address) with the provided network type, using either r.Dial
    // (if both r and r.Dial are non-nil) or else Dialer.DialContext.
    func (r *Resolver) dial(ctx context.Context, network, server string) (Conn, error) {
    	// Calling Dial here is scary -- we have to be sure not to
    	// dial a name that will require a DNS lookup, or Dial will
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  3. pilot/pkg/grpc/grpc.go

    	defaultInitialConnWindowSize       = 1024 * 1024 // default gRPC InitialWindowSize
    	defaultInitialWindowSize           = 1024 * 1024 // default gRPC ConnWindowSize
    )
    
    // ClientOptions returns consistent grpc dial options with custom dial options
    func ClientOptions(options *istiokeepalive.Options, tlsOpts *TLSOptions) ([]grpc.DialOption, error) {
    	if options == nil {
    		options = istiokeepalive.DefaultOption()
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Feb 17 04:27:50 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/net/file_test.go

    			defer ls.teardown()
    			if err := ls.buildup(handler); err != nil {
    				t.Fatal(err)
    			}
    			network = ls.Listener.Addr().Network()
    			address = ls.Listener.Addr().String()
    		}
    
    		c1, err := Dial(network, address)
    		if err != nil {
    			if perr := parseDialError(err); perr != nil {
    				t.Error(perr)
    			}
    			t.Fatal(err)
    		}
    		addr := c1.LocalAddr()
    
    		var f *os.File
    		switch c1 := c1.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  5. istioctl/pkg/xds/client.go

    	if err != nil {
    		return nil, fmt.Errorf("could not dial: %w", err)
    	}
    	err = adscConn.Run()
    	if err != nil {
    		return nil, fmt.Errorf("ADSC: failed running %v", err)
    	}
    
    	err = adscConn.Send(dr)
    	if err != nil {
    		return nil, err
    	}
    	response, err := adscConn.WaitVersion(opts.Timeout, dr.TypeUrl, "")
    	return response, err
    }
    
    // DialOptions constructs gRPC dial options from command line configuration
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. src/crypto/x509/hybrid_pool_test.go

    		// a better possible long term solution.
    
    		deadline := time.Now().Add(time.Second * 10)
    		nextSleep := 10 * time.Millisecond
    		for i := 0; ; i++ {
    			c, err := tls.Dial("tcp", "google.com:443", nil)
    			if err == nil {
    				c.Close()
    				break
    			}
    			nextSleep = nextSleep * time.Duration(i)
    			if time.Until(deadline) < nextSleep {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:48:11 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. src/net/error_test.go

    		}
    		t.Run(fmt.Sprintf("%s/%s", tt.network, desc), func(t *testing.T) {
    			var err error
    			var c Conn
    			var op string
    			if tt.lit != "" {
    				c, err = Dial(tt.network, JoinHostPort(tt.lit, "0"))
    				op = fmt.Sprintf("Dial(%q, %q)", tt.network, JoinHostPort(tt.lit, "0"))
    			} else {
    				c, err = DialTCP(tt.network, nil, tt.addr)
    				op = fmt.Sprintf("DialTCP(%q, %q)", tt.network, tt.addr)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  8. src/crypto/tls/tls_test.go

    			// The Listener accepted a connection, so assume that it was from our
    			// Dial: we triggered the timeout at the point where we wanted it!
    			t.Logf("Listener accepted a connection from %s", lconn.RemoteAddr())
    			lconn.Close()
    		}
    		// Close any spurious extra connections from the listener. (This is
    		// possible if there are, for example, stray Dial calls from other tests.)
    		for extraConn := range acceptc {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go

    	if err != nil {
    		return nil, nil, err
    	}
    	// return the http response and the raw bytes consumed from the reader in the process
    	return resp, rawResponse.Bytes(), nil
    }
    
    // dial dials the backend at req.URL and writes req to it.
    func dial(req *http.Request, transport http.RoundTripper) (net.Conn, error) {
    	conn, err := DialURL(req.Context(), req.URL, transport)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  10. src/runtime/testdata/testprognet/waiters.go

    			log.Fatal(err)
    		}
    		defer conn.Close()
    		if _, err := io.Copy(io.Discard, conn); err != nil {
    			log.Fatal(err)
    		}
    	}()
    
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		conn, err := net.Dial("tcp", listener.Addr().String())
    		if err != nil {
    			log.Fatal(err)
    		}
    		defer conn.Close()
    		for i := 0; i < 10; i++ {
    			fmt.Fprintf(conn, "%d\n", i)
    			time.Sleep(time.Millisecond)
    		}
    	}()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 1.3K bytes
    - Viewed (0)
Back to top