- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 178 for Ln (0.23 sec)
-
src/cmd/compile/internal/ssa/likelyadjust.go
} } ln.initializedChildren = true } // calculateDepths uses the children field of loops // to determine the nesting depth (outer=1) of each // loop. This is helpful for finding exit edges. func (ln *loopnest) calculateDepths() { if ln.initializedDepth { return } ln.assembleChildren() for _, l := range ln.loops { if l.outer == nil { l.setDepth(1) } } ln.initializedDepth = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 31 21:41:20 UTC 2022 - 15.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/net/util_test.go
} } func (lb *tcpLB) serve(stopCh chan struct{}) { conn, err := lb.ln.Accept() if err != nil { lb.t.Fatalf("failed to accept: %v", err) } atomic.AddInt32(&lb.dials, 1) go lb.handleConnection(conn, stopCh) } func newLB(t *testing.T, serverURL string) *tcpLB { ln, err := net.Listen("tcp", "127.0.0.1:0") if err != nil { t.Fatalf("failed to bind: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 20 19:02:55 UTC 2023 - 4.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/serving_with_loopback_test.go
s := (&SecureServingOptions{ BindAddress: netutils.ParseIPSloppy("127.0.0.1"), }).WithLoopback() ln, err := net.Listen("tcp", "127.0.0.1:0") if err != nil { t.Fatalf("failed to listen on 127.0.0.1:0") } defer ln.Close() s.Listener = ln s.BindPort = ln.Addr().(*net.TCPAddr).Port if err := s.ApplyTo(&secureServingInfo, &loopbackClientConfig); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 20 08:42:09 UTC 2021 - 1.4K bytes - Viewed (0) -
src/net/unixsock_posix.go
// programs that can mess us up. // Even if there are racy calls to Close, we want to unlink only for the first one. ln.unlinkOnce.Do(func() { if ln.path[0] != '@' && ln.unlink { syscall.Unlink(ln.path) } }) return ln.fd.Close() } func (ln *UnixListener) file() (*os.File, error) { f, err := ln.fd.dup() if err != nil { return nil, err } return f, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:54:32 UTC 2024 - 6.6K bytes - Viewed (0) -
src/net/error_test.go
t.Error(perr) } } else { c.Close() t.Error("should fail") } ln, err := FileListener(f) if err != nil { if ln != nil { t.Errorf("FileListener returned non-nil interface %T(%v) with err != nil", ln, ln) } if perr := parseCommonError(err); perr != nil { t.Error(perr) } } else { ln.Close() t.Error("should fail") } pc, err := FilePacketConn(f) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 20.3K bytes - Viewed (0) -
pkg/controlplane/apiserver/config_test.go
s := (&apiserveroptions.SecureServingOptions{ BindAddress: netutils.ParseIPSloppy("127.0.0.1"), }).WithLoopback() ln, err := net.Listen("tcp", "127.0.0.1:0") if err != nil { t.Fatalf("failed to listen on 127.0.0.1:0") } defer ln.Close() s.Listener = ln s.BindPort = ln.Addr().(*net.TCPAddr).Port opts.SecureServing = s completedOptions, err := opts.Complete(nil, nil) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 26 12:14:06 UTC 2024 - 2.5K bytes - Viewed (0) -
src/net/mptcpsock_linux_test.go
} genericCh := make(chan error) mptcpCh := make(chan error) handler := func(ls *localServer, ln Listener) { ls.transponder(ln, genericCh) postAcceptMPTCP(ls, mptcpCh) } if err := ls.buildup(handler); err != nil { t.Fatal(err) } dialerMPTCP(t, ln.Addr().String(), envVar) if err := <-genericCh; err != nil { t.Error(err) } if err := <-mptcpCh; err != nil { t.Error(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 11 00:36:57 UTC 2023 - 4.1K bytes - Viewed (0) -
src/net/unixsock_windows_test.go
t.Skip("unix test") } handler := func(ls *localServer, ln Listener) {} for _, laddr := range []string{"", testUnixAddr(t)} { laddr := laddr taddr := testUnixAddr(t) ta, err := ResolveUnixAddr("unix", taddr) if err != nil { t.Fatal(err) } ln, err := ListenUnix("unix", ta) if err != nil { t.Fatal(err) } ls := (&streamListener{Listener: ln}).newLocalServer() defer ls.teardown()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 12 17:24:57 UTC 2024 - 1.8K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/stacks.go
wg.Wait() }() cv := sync.NewCond(&sync.Mutex{}) go func() { // func9 cv.L.Lock() cv.Wait() cv.L.Unlock() }() ln, err := net.Listen("tcp", "127.0.0.1:0") if err != nil { log.Fatalf("failed to listen: %v", err) } go func() { // func10 c, err := ln.Accept() if err != nil { log.Printf("failed to accept: %v", err) return } c.Close() }() rp, wp, err := os.Pipe()
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
} // checkNetworkUnblock relies on this. ln, err := net.Listen("tcp", "127.0.0.1:0") if err != nil { log.Fatalf("listen failed: %v", err) } defer ln.Close() 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 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 17:15:58 UTC 2024 - 2.5K bytes - Viewed (0)