- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 613 for dial (0.05 sec)
-
src/net/lookup_test.go
// The Plan 9 implementation of the resolver doesn't use the Dial function yet. See https://go.dev/cl/409234 t.Skip("skipping on plan9") } rDeadlineExcceeded := &Resolver{PreferGo: true, Dial: func(ctx context.Context, network, address string) (Conn, error) { return nil, context.DeadlineExceeded }} rCancelled := &Resolver{PreferGo: true, Dial: func(ctx context.Context, network, address string) (Conn, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 41.4K bytes - Viewed (0) -
src/net/packetconn_test.go
continue } c1, err := ListenPacket(tt.net, tt.addr1) if err != nil { t.Fatal(err) } defer closer(c1, tt.net, tt.addr1, tt.addr2) c1.LocalAddr() c2, err := Dial(tt.net, c1.LocalAddr().String()) if err != nil { t.Fatal(err) } defer c2.Close() c2.LocalAddr() c2.RemoteAddr() if _, err := c2.Write(wb); err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 3K bytes - Viewed (0) -
internal/event/target/amqp.go
} return ch, nil, nil } if !isAMQPClosedErr(err) { return nil, nil, err } // close when we know this is a network error. target.conn.Close() } conn, err = amqp091.Dial(target.args.URL.String()) if err != nil { if xnet.IsConnRefusedErr(err) { return nil, nil, store.ErrNotConnected } return nil, nil, err } ch, err = conn.Channel() if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 10K bytes - Viewed (0) -
pkg/adsc/adsc.go
} if config.BackoffPolicy == nil { config.BackoffPolicy = backoff.NewExponentialBackOff(backoff.DefaultOption()) } return *config } // Dial connects to a ADS server, with optional MTLS authentication if a cert dir is specified. func (a *ADSC) Dial() error { conn, err := dialWithConfig(&a.cfg.Config) if err != nil { return err } a.conn = conn return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 05 22:18:49 UTC 2024 - 35K 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) -
pkg/istio-agent/xds_proxy_test.go
FileMountedCerts: true, } proxyConfig := mesh.DefaultProxyConfig() proxyConfig.DiscoveryAddress = "buffcon" // While the actual test runs on plain text, these are setup to build the default dial options // with out these it looks for default cert location and fails. proxyConfig.ProxyMetadata = map[string]string{ MetadataClientCertChain: path.Join(env.IstioSrc, "tests/testdata/certs/pilot/cert-chain.pem"),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 04:48:02 UTC 2024 - 18.6K bytes - Viewed (0) -
pkg/test/echo/server/forwarder/util.go
out.Resolver = newResolver(common.ConnectionTimeout, "", "") } return out } func newResolver(timeout time.Duration, protocol, dnsServer string) *net.Resolver { return &net.Resolver{ PreferGo: true, Dial: func(ctx context.Context, network, address string) (net.Conn, error) { d := net.Dialer{ Timeout: timeout, } nt := protocol if nt == "" { nt = network } addr := dnsServer
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Oct 08 09:39:20 UTC 2023 - 4.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)