- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 102 for dial (0.05 sec)
-
src/runtime/internal/wasitest/tcpecho_test.go
subProcess.Stderr = &b if err := subProcess.Start(); err != nil { t.Log(b.String()) t.Fatal(err) } defer subProcess.Process.Kill() var conn net.Conn for { var err error conn, err = net.Dial("tcp", host) if err == nil { break } time.Sleep(500 * time.Millisecond) } defer conn.Close() payload := []byte("foobar") if _, err := conn.Write(payload); err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 22:01:11 UTC 2024 - 2.4K bytes - Viewed (0) -
internal/event/target/redis.go
return nil, fmt.Errorf("unable to initialize the queue store of Redis `%s`: %w", id, err) } } pool := &redis.Pool{ MaxIdle: 3, IdleTimeout: 2 * 60 * time.Second, Dial: func() (redis.Conn, error) { conn, err := redis.Dial("tcp", args.Addr.String()) if err != nil { return nil, err } if args.Password != "" { if args.User != "" {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 9.1K bytes - Viewed (0) -
pilot/pkg/grpc/tls.go
if err != nil { return nil, err } certPool = x509.NewCertPool() ok := certPool.AppendCertsFromPEM(rootCert) if !ok { return nil, fmt.Errorf("failed to create TLS dial option with root certificates") } } else { certPool, err = x509.SystemCertPool() if err != nil { return nil, err } } return certPool, nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 22:11:02 UTC 2024 - 2.9K bytes - Viewed (0) -
pkg/log/uds.go
func teeToUDSServer(baseCore zapcore.Core, address, path string) zapcore.Core { c := http.Client{ Transport: &http.Transport{ DialContext: func(_ context.Context, _, _ string) (net.Conn, error) { return net.Dial("unix", address) }, }, Timeout: time.Second, } uc := &udsCore{ client: c, url: "http://unix" + path, enc: zapcore.NewJSONEncoder(defaultEncoderConfig),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 16 00:20:01 UTC 2024 - 3.4K bytes - Viewed (0) -
src/net/ipsock.go
// host%zone and port. // // A literal IPv6 address in hostport must be enclosed in square // brackets, as in "[::1]:80", "[::1%lo0]:80". // // See func Dial for a description of the hostport parameter, and host // and port results. func SplitHostPort(hostport string) (host, port string, err error) { const ( missingPort = "missing port in address"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 9.4K bytes - Viewed (0) -
src/net/iprawsock_posix.go
return sd.Dialer.Control(network, address, c) } } fd, err := internetSocket(ctx, network, laddr, raddr, syscall.SOCK_RAW, proto, "dial", ctrlCtxFn) if err != nil { return nil, err } return newIPConn(fd), nil } func (sl *sysListener) listenIP(ctx context.Context, laddr *IPAddr) (*IPConn, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:54:32 UTC 2024 - 3.9K bytes - Viewed (0) -
pkg/test/framework/components/istio/ca.go
} config := tls.Config{ RootCAs: certPool, InsecureSkipVerify: true, // nolint: gosec // test only code } transportCreds := credentials.NewTLS(&config) conn, err := grpc.Dial(endpoint, grpc.WithTransportCredentials(transportCreds)) if err != nil { return nil, fmt.Errorf("failed to connect to endpoint %s", endpoint) } client := pb.NewIstioCertificateServiceClient(conn)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 27 16:59:05 UTC 2024 - 4.5K bytes - Viewed (0) -
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) -
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) -
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)