Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 51 for tcpNone (0.55 sec)

  1. src/net/dial_test.go

    				n := "tcp6"
    				if raddr.IP.To4() != nil {
    					n = "tcp4"
    				}
    				if n == tt.teardownNetwork {
    					return nil, errors.New("unreachable")
    				}
    				if r := raddr.IP.String(); r == slowDst4 || r == slowDst6 {
    					<-ctx.Done()
    					return nil, ctx.Err()
    				}
    				return &TCPConn{}, nil
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. api/go1.23.txt

    pkg math/rand/v2, func Uint() uint #61716
    pkg math/rand/v2, method (*ChaCha8) Read([]uint8) (int, error) #67059
    pkg math/rand/v2, method (*Rand) Uint() uint #61716
    pkg net, method (*DNSError) Unwrap() error #63116
    pkg net, method (*TCPConn) SetKeepAliveConfig(KeepAliveConfig) error #62254
    pkg net, type DNSError struct, UnwrapErr error #63116
    pkg net, type Dialer struct, KeepAliveConfig KeepAliveConfig #62254
    pkg net, type KeepAliveConfig struct #62254
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 20:48:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_server_test.go

    	}
    
    	connChan := make(chan any, 1)
    	go func() {
    		tcpConn, err := l.Accept()
    		if err != nil {
    			connChan <- err
    			return
    		}
    		connChan <- tcpConn
    	}()
    
    	var tcpConn net.Conn
    	select {
    	case connOrError := <-connChan:
    		if err, ok := connOrError.(error); ok {
    			return nil, nil, err
    		}
    		tcpConn = connOrError.(net.Conn)
    	case <-time.After(2 * time.Second):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  4. src/net/protoconn_test.go

    	c.LocalAddr()
    	c.RemoteAddr()
    	c.SetDeadline(time.Now().Add(someTimeout))
    	c.SetReadDeadline(time.Now().Add(someTimeout))
    	c.SetWriteDeadline(time.Now().Add(someTimeout))
    
    	if _, err := c.Write([]byte("TCPCONN TEST")); err != nil {
    		t.Fatal(err)
    	}
    	rb := make([]byte, 128)
    	if _, err := c.Read(rb); err != nil {
    		t.Fatal(err)
    	}
    
    	for err := range ch {
    		t.Error(err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  5. src/net/error_test.go

    		if err != nil {
    			t.Fatal(err)
    		}
    		defer c.Close()
    
    		for i := 0; i < 3; i++ {
    			err = c.(*TCPConn).CloseRead()
    			if perr := parseCloseError(err, true); perr != nil {
    				t.Errorf("#%d: %v", i, perr)
    			}
    		}
    		for i := 0; i < 3; i++ {
    			err = c.(*TCPConn).CloseWrite()
    			if perr := parseCloseError(err, true); perr != nil {
    				t.Errorf("#%d: %v", i, perr)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/secure_serving.go

    type tcpKeepAliveListener struct {
    	net.Listener
    }
    
    func (ln tcpKeepAliveListener) Accept() (net.Conn, error) {
    	c, err := ln.Listener.Accept()
    	if err != nil {
    		return nil, err
    	}
    	if tc, ok := c.(*net.TCPConn); ok {
    		tc.SetKeepAlive(true)
    		tc.SetKeepAlivePeriod(defaultKeepAlivePeriod)
    	}
    	return c, nil
    }
    
    // tlsHandshakeErrorWriter writes TLS handshake errors to klog with
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 20:54:07 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  7. api/go1.22.txt

    pkg math/rand/v2, type Rand struct #61716
    pkg math/rand/v2, type Source interface { Uint64 } #61716
    pkg math/rand/v2, type Source interface, Uint64() uint64 #61716
    pkg math/rand/v2, type Zipf struct #61716
    pkg net, method (*TCPConn) WriteTo(io.Writer) (int64, error) #58808
    pkg net/http, func FileServerFS(fs.FS) Handler #51971
    pkg net/http, func NewFileTransportFS(fs.FS) RoundTripper #51971
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 20:54:27 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. api/go1.9.txt

    pkg mime/multipart, type FileHeader struct, Size int64
    pkg mime/multipart, var ErrMessageTooLarge error
    pkg net, method (*IPConn) SyscallConn() (syscall.RawConn, error)
    pkg net, method (*TCPConn) SyscallConn() (syscall.RawConn, error)
    pkg net, method (*UDPConn) SyscallConn() (syscall.RawConn, error)
    pkg net, method (*UnixConn) SyscallConn() (syscall.RawConn, error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 04 20:20:20 UTC 2021
    - 10.7K bytes
    - Viewed (0)
  9. src/net/sendfile_test.go

    	if !called {
    		t.Error("internal/poll.SendFile was not called, want it to be")
    		return
    	}
    	if !gotHandled {
    		t.Error("internal/poll.SendFile did not handle the write, want it to")
    		return
    	}
    	if &wantConn.(*TCPConn).fd.pfd != gotFD {
    		t.Error("internal.poll.SendFile called with unexpected FD")
    	}
    }
    
    func TestSendfile(t *testing.T) {
    	ln := newLocalListener(t, "tcp")
    	defer ln.Close()
    
    	errc := make(chan error, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*TCPConn).SetKeepAlive", Method, 0},
    		{"(*TCPConn).SetKeepAlivePeriod", Method, 2},
    		{"(*TCPConn).SetLinger", Method, 0},
    		{"(*TCPConn).SetNoDelay", Method, 0},
    		{"(*TCPConn).SetReadBuffer", Method, 0},
    		{"(*TCPConn).SetReadDeadline", Method, 0},
    		{"(*TCPConn).SetWriteBuffer", Method, 0},
    		{"(*TCPConn).SetWriteDeadline", Method, 0},
    		{"(*TCPConn).SyscallConn", Method, 9},
    		{"(*TCPConn).Write", Method, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top