Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 115 for dial (0.05 sec)

  1. src/net/http/transport_dial_test.go

    }
    
    // wantDial waits for the Transport to start a Dial.
    func (dt *transportDialTester) wantDial() *transportDialTesterConn {
    	c := <-dt.dials
    	c.connID = dt.dialCount
    	dt.dialCount++
    	dt.t.Logf("Dial %v: started", c.connID)
    	return c
    }
    
    // finish completes a Dial.
    func (c *transportDialTesterConn) finish(err error) {
    	c.t.Logf("Dial %v: finished (err:%v)", c.connID, err)
    	c.ready <- err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:11:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. pkg/util/filesystem/util_windows.go

    	// on the Unix Domain socket working on the very first try, hence the potential need to
    	// dial multiple times
    	var lastSocketErr error
    	err := wait.PollImmediate(socketDialRetryPeriod, socketDialTimeout,
    		func() (bool, error) {
    			klog.V(6).InfoS("Dialing the socket", "filePath", filePath)
    			var c net.Conn
    			c, lastSocketErr = net.Dial("unix", filePath)
    			if lastSocketErr == nil {
    				c.Close()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. pkg/kubelet/pluginmanager/operationexecutor/operation_generator.go

    		return fmt.Errorf("%s: %w", errStr, err)
    	}
    
    	if errStr != "" {
    		return errors.New(errStr)
    	}
    
    	return nil
    }
    
    // Dial establishes the gRPC communication with the picked up plugin socket. https://godoc.org/google.golang.org/grpc#Dial
    func dial(unixSocketPath string, timeout time.Duration) (registerapi.RegistrationClient, *grpc.ClientConn, error) {
    	ctx, cancel := context.WithTimeout(context.Background(), timeout)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:21:15 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. src/net/tcpsock_posix.go

    		}
    	}
    	fd, err := internetSocket(ctx, sd.network, laddr, raddr, syscall.SOCK_STREAM, proto, "dial", ctrlCtxFn)
    
    	// TCP has a rarely used mechanism called a 'simultaneous connection' in
    	// which Dial("tcp", addr1, addr2) run on the machine at addr1 can
    	// connect to a simultaneous Dial("tcp", addr2, addr1) run on the machine
    	// at addr2, without either machine executing Listen. If laddr == nil,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. src/net/tcpconn_keepalive_test.go

    		t.Fatal(err)
    	}
    
    	for _, cfg := range testConfigs {
    		d := Dialer{
    			KeepAlive:       defaultTCPKeepAliveIdle, // should be ignored
    			KeepAliveConfig: cfg}
    		c, err := d.Dial("tcp", ls.Listener.Addr().String())
    		if err != nil {
    			t.Fatal(err)
    		}
    		defer c.Close()
    
    		if errHook != nil {
    			t.Fatal(errHook)
    		}
    
    		sc, err := c.(*TCPConn).SyscallConn()
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. test/stress/runstress.go

    	}
    }
    
    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:
    		time.Sleep(250 * time.Millisecond)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:21:35 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. cmd/metrics-v3-system-network.go

    		"Total number of failed internode calls")
    	internodeDialedErrorsTotalMD = NewCounterMD(internodeDialErrorsTotal,
    		"Total number of internode TCP dial timeouts and errors")
    	internodeDialAvgTimeNanosMD = NewGaugeMD(internodeDialAvgTimeNanos,
    		"Average dial time of internode TCP calls in nanoseconds")
    	internodeSentBytesTotalMD = NewCounterMD(internodeSentBytesTotal,
    		"Total number of bytes sent to other peer nodes")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 10 09:15:15 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. src/internal/trace/testdata/testprog/stress.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)
    	}
    	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.5K bytes
    - Viewed (0)
  9. 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)
  10. src/net/http/httptest/server_test.go

    		w.Write([]byte("hello"))
    	}))
    	dial := func() net.Conn {
    		c, err := net.Dial("tcp", ts.Listener.Addr().String())
    		if err != nil {
    			t.Fatal(err)
    		}
    		return c
    	}
    
    	// Keep one connection in StateNew (connected, but not sending anything)
    	cnew := dial()
    	defer cnew.Close()
    
    	// Keep one connection in StateIdle (idle after a request)
    	cidle := dial()
    	defer cidle.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 16:57:12 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top