Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for connc (0.12 sec)

  1. src/crypto/tls/conn.go

    // After a Write has timed out, the TLS state is corrupt and all future writes will return the same error.
    func (c *Conn) SetDeadline(t time.Time) error {
    	return c.conn.SetDeadline(t)
    }
    
    // SetReadDeadline sets the read deadline on the underlying connection.
    // A zero value for t means [Conn.Read] will not time out.
    func (c *Conn) SetReadDeadline(t time.Time) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  2. src/net/http/transport.go

    		f(w)
    	}
    }
    
    func (t *Transport) customDialTLS(ctx context.Context, network, addr string) (conn net.Conn, err error) {
    	if t.DialTLSContext != nil {
    		conn, err = t.DialTLSContext(ctx, network, addr)
    	} else {
    		conn, err = t.DialTLS(network, addr)
    	}
    	if conn == nil && err == nil {
    		err = errors.New("net/http: Transport.DialTLS or DialTLSContext returned (nil, nil)")
    	}
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  3. src/crypto/tls/tls_test.go

    		clientConfig := testConfig.Clone()
    		conn, err := Dial("tcp", ln.Addr().String(), clientConfig)
    		if err != nil {
    			return err
    		}
    		if err := conn.Handshake(); err != nil {
    			return err
    		}
    		defer conn.Close()
    
    		if err := conn.CloseWrite(); err != nil {
    			return fmt.Errorf("client CloseWrite: %v", err)
    		}
    
    		if _, err := conn.Write([]byte{0}); err != errShutdown {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    		{think: time.Second, pad: 0, finalSeats: 2, conc: 2, nClients: 2},
    		{think: 0, pad: time.Second, finalSeats: 1, conc: 1, nClients: 1, exp: flts(0.5)},
    		{think: 0, pad: time.Second, finalSeats: 1, conc: 2, nClients: 1},
    		{think: 0, pad: time.Second, finalSeats: 2, conc: 2, nClients: 1, exp: flts(0.5)},
    		{think: 0, pad: time.Second, finalSeats: 1, conc: 1, nClients: 2, exp: flts(0.25, 0.25)},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_server_test.go

    		if _, err := cli.writeHandshakeRecord(m, nil); err != nil {
    			testFatal(t, err)
    		}
    		c.Close()
    	}()
    	ctx := context.Background()
    	conn := Server(s, serverConfig)
    	ch, err := conn.readClientHello(ctx)
    	if conn.vers == VersionTLS13 {
    		hs := serverHandshakeStateTLS13{
    			c:           conn,
    			ctx:         ctx,
    			clientHello: ch,
    		}
    		if err == nil {
    			err = hs.processClientHello()
    		}
    		if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  6. pkg/kubelet/server/server_test.go

    		t.Fatalf("Got error POSTing: %v", err)
    	}
    	defer resp.Body.Close()
    
    	conn, err := upgradeRoundTripper.NewConnection(resp)
    	if err != nil {
    		t.Fatalf("Unexpected error creating streaming connection: %s", err)
    	}
    	if conn == nil {
    		t.Fatal("Unexpected nil connection")
    	}
    	defer conn.Close()
    
    	<-conn.CloseChan()
    }
    
    func TestServePortForward(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  7. src/crypto/tls/handshake_client_test.go

    }
    
    // peekError does a read with a short timeout to check if the next read would
    // cause an error, for example if there is an alert waiting on the wire.
    func peekError(conn net.Conn) error {
    	conn.SetReadDeadline(time.Now().Add(100 * time.Millisecond))
    	if n, err := conn.Read(make([]byte, 1)); n != 0 {
    		return errors.New("unexpectedly read data")
    	} else if err != nil {
    		if netErr, ok := err.(net.Error); !ok || !netErr.Timeout() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    	tcpinfo.Rcv_ssthresh = conn.ssThresh
    	tcpinfo.Rtt = conn.roundTripTime
    	tcpinfo.Rttvar = conn.roundTripVar
    	tcpinfo.Snd_ssthresh = conn.ssThresh // dummy
    	tcpinfo.Snd_cwnd = conn.congestionWnd
    	tcpinfo.Advmss = conn.sendMSS        // dummy
    	tcpinfo.Reordering = 0               // dummy
    	tcpinfo.Rcv_rtt = conn.roundTripTime // dummy
    	tcpinfo.Rcv_space = conn.sendMSS     // dummy
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  9. cmd/iam.go

    func (sys *IAMSys) NormalizeLDAPAccessKeypairs(ctx context.Context, accessKeyMap map[string]madmin.SRSvcAccCreate,
    ) (err error) {
    	conn, err := sys.LDAPConfig.LDAP.Connect()
    	if err != nil {
    		return err
    	}
    	defer conn.Close()
    
    	// Bind to the lookup user account
    	if err = sys.LDAPConfig.LDAP.LookupBind(conn); err != nil {
    		return err
    	}
    
    	var collectedErrors []error
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  10. src/net/http/client_test.go

    	if err != io.EOF {
    		t.Fatalf("at end expected EOF, got %v", err)
    	}
    }
    
    type writeCountingConn struct {
    	net.Conn
    	count *int
    }
    
    func (c *writeCountingConn) Write(p []byte) (int, error) {
    	*c.count++
    	return c.Conn.Write(p)
    }
    
    // TestClientWrites verifies that client requests are buffered and we
    // don't send a TCP packet per line of the http request + body.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
Back to top