- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 71 for dialFn (0.11 sec)
-
src/net/textproto/textproto.go
} } // Close closes the connection. func (c *Conn) Close() error { return c.conn.Close() } // Dial connects to the given address on the given network using [net.Dial] // and then returns a new [Conn] for the connection. func Dial(network, addr string) (*Conn, error) { c, err := net.Dial(network, addr) if err != nil { return nil, err } return NewConn(c), nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 3.7K bytes - Viewed (0) -
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) -
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) -
src/net/main_conf_test.go
t.Run("default resolver", f) t.Run("forced go resolver", func(t *testing.T) { // On plan9 the forceGoDNS might not force the go resolver, currently // it is only forced when the Resolver.Dial field is populated. // See conf.go mustUseGoResolver. defer forceGoDNS()() f(t) }) t.Run("forced cgo resolver", func(t *testing.T) { defer forceCgoDNS()() f(t) }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 19 20:29:27 UTC 2024 - 2.5K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/tables.go
var htmlTags = []string{ "address", "article", "aside", "base", "basefont", "blockquote", "body", "caption", "center", "col", "colgroup", "dd", "details", "dialog", "dir", "div", "dl", "dt", "fieldset", "figcaption", "figure", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 3.8K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/stacks.go
done1 <- true <-done2 select { case c1 <- 0: case c2 <- 0: } mu.Unlock() wg.Done() cv.Signal() c, err := net.Dial("tcp", ln.Addr().String()) if err != nil { log.Fatalf("failed to dial: %v", err) } c.Close() var data [1]byte wp.Write(data[:]) <-pipeReadDone oldGoMaxProcs := runtime.GOMAXPROCS(0) runtime.GOMAXPROCS(oldGoMaxProcs + 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.4K bytes - Viewed (0) -
src/cmd/trace/testdata/testprog/main.go
go func() { c, err := ln.Accept() if err != nil { return } time.Sleep(time.Millisecond) var buf [1]byte c.Write(buf[:]) c.Close() }() c, err := net.Dial("tcp", ln.Addr().String()) if err != nil { log.Fatalf("dial failed: %v", err) } var tmp [1]byte c.Read(tmp[:]) c.Close() trace.Stop() } // blockingSyscall blocks the current goroutine for duration d in a syscall and
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 17:15:58 UTC 2024 - 2.5K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/stress-start-stop.go
c, err := ln.Accept() if err != nil { return } time.Sleep(time.Millisecond) var buf [1]byte c.Write(buf[:]) c.Close() }() c, err := net.Dial("tcp", ln.Addr().String()) if err != nil { log.Fatalf("dial failed: %v", err) return } var tmp [1]byte c.Read(tmp[:]) c.Close() go func() { runtime.Gosched() select {} }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.7K bytes - Viewed (0) -
src/net/resolverdialfunc_test.go
// Test that Resolver.Dial can be a func returning an in-memory net.Conn // speaking DNS. package net import ( "bytes" "context" "errors" "fmt" "reflect" "slices" "testing" "time" "golang.org/x/net/dns/dnsmessage" ) func TestResolverDialFunc(t *testing.T) { r := &Resolver{ PreferGo: true, Dial: newResolverDialFunc(&resolverDialHandler{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.3K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/img/commandLineTutorialTasks.graphml
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 6.3K bytes - Viewed (0)