Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 613 for dial (0.16 sec)

  1. security/pkg/nodeagent/caclient/providers/citadel/client.go

    	opts, err := istiogrpc.ClientOptions(nil, tlsOpts)
    	if err != nil {
    		return nil, err
    	}
    	opts = append(opts,
    		grpc.WithPerRPCCredentials(c.provider),
    		security.CARetryInterceptor(),
    	)
    	conn, err := grpc.Dial(c.opts.CAEndpoint, opts...)
    	if err != nil {
    		citadelClientLog.Errorf("Failed to connect to endpoint %s: %v", c.opts.CAEndpoint, err)
    		return nil, fmt.Errorf("failed to connect to endpoint %s", c.opts.CAEndpoint)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. src/net/udpsock_test.go

    		t.Fatal(err)
    	}
    	defer c.Close()
    
    	testWriteToConn(t, c.LocalAddr().String())
    	testWriteToPacketConn(t, c.LocalAddr().String())
    }
    
    func testWriteToConn(t *testing.T, raddr string) {
    	c, err := Dial("udp", raddr)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer c.Close()
    
    	ra, err := ResolveUDPAddr("udp", raddr)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	b := []byte("CONNECTED-MODE SOCKET")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  3. src/crypto/tls/bogo_shim_test.go

    			if err != nil {
    				log.Fatalf("parse ech-config-list err: %s", err)
    			}
    			cfg.EncryptedClientHelloConfigList = echConfigList
    		}
    
    		conn, err := net.Dial("tcp", net.JoinHostPort("localhost", *port))
    		if err != nil {
    			log.Fatalf("dial err: %s", err)
    		}
    		defer conn.Close()
    
    		// Write the shim ID we were passed as a little endian uint64
    		shimIDBytes := make([]byte, 8)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:25:39 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. internal/http/dial_linux.go

    					_ = syscall.SetsockoptString(fd, syscall.SOL_SOCKET, syscall.SO_BINDTODEVICE, opts.Interface)
    				}
    			}
    		})
    		return nil
    	}
    }
    
    // DialContext is a function to make custom Dial for internode communications
    type DialContext func(ctx context.Context, network, address string) (net.Conn, error)
    
    // NewInternodeDialContext setups a custom dialer for internode communication
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 4.8K bytes
    - Viewed (3)
  5. staging/src/k8s.io/apiserver/pkg/server/options/serving_test.go

    			roots := x509.NewCertPool()
    			for _, caCert := range caCerts {
    				roots.AddCert(caCert)
    			}
    
    			<-startedCh
    
    			// try to dial
    			addr := fmt.Sprintf("localhost:%d", secureOptions.BindPort)
    			t.Logf("Dialing %s as %q", addr, test.ServerName)
    			conn, err := tls.Dial("tcp", addr, &tls.Config{
    				RootCAs:    roots,
    				ServerName: test.ServerName, // used for SNI in the client HELLO packet
    			})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 15:52:39 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. src/net/http/httptest/server.go

    			// super rare and have only been seen (in
    			// previously-flaky tests) in the case of
    			// socket-late-binding races from the http Client
    			// dialing this server and then getting an idle
    			// connection before the dial completed. There is thus
    			// a connected connection in StateNew with no
    			// associated Request. We only close StateIdle and
    			// StateNew because they're not doing anything. It's
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:26:10 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. pkg/adsc/delta.go

    	if err != nil || t == nil {
    		return nil
    	}
    	return t.New().Interface()
    }
    
    func (c *Client) Run(ctx context.Context) error {
    	if err := c.Dial(); err != nil {
    		return fmt.Errorf("dial context: %v", err)
    	}
    
    	xds := discovery.NewAggregatedDiscoveryServiceClient(c.conn)
    	xdsClient, err := xds.DeltaAggregatedResources(ctx, grpc.MaxCallRecvMsgSize(math.MaxInt32))
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 09:32:41 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. src/net/http/client_test.go

    			Redirect(w, r, "http://secondhost.fake/secondpath", 302)
    		}
    	})).ts
    	jar := new(RecordingJar)
    	c := ts.Client()
    	c.Jar = jar
    	c.Transport.(*Transport).Dial = func(_ string, _ string) (net.Conn, error) {
    		return net.Dial("tcp", ts.Listener.Addr().String())
    	}
    	_, err := c.Get("http://firsthost.fake/")
    	if err != nil {
    		t.Fatal(err)
    	}
    	_, err = c.Get("http://firsthost.fake/nosetcookie")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/apis/apiserver/types.go

    type Connection struct {
    	// Protocol is the protocol used to connect from client to the konnectivity server.
    	ProxyProtocol ProtocolType
    
    	// Transport defines the transport configurations we use to dial to the konnectivity server.
    	// This is required if ProxyProtocol is HTTPConnect or GRPC.
    	// +optional
    	Transport *Transport
    }
    
    // ProtocolType is a set of valid values for Connection.ProtocolType
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 00:57:24 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  10. src/net/http/main_test.go

    		").readLoop(":  "a Transport",
    		").writeLoop(": "a Transport",
    		"created by net/http/httptest.(*Server).Start": "an httptest.Server",
    		"timeoutHandler":        "a TimeoutHandler",
    		"net.(*netFD).connect(": "a timing out dial",
    		").noteClientGone(":     "a closenotifier sender",
    	}
    	var stacks string
    	for i := 0; i < 2500; i++ {
    		bad = ""
    		stacks = strings.Join(interestingGoroutines(), "\n\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:49:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top