Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for TLSHandshakeTimeout (0.18 sec)

  1. internal/http/transports.go

    		ReadBufferSize:        ReadBufferSize,
    		IdleConnTimeout:       15 * time.Second,
    		ResponseHeaderTimeout: 15 * time.Minute, // Conservative timeout is the default (for MinIO internode)
    		TLSHandshakeTimeout:   10 * time.Second,
    		TLSClientConfig:       &tlsClientConfig,
    		ForceAttemptHTTP2:     s.EnableHTTP2,
    		// Go net/http automatically unzip if content-type is
    		// gzip disable this feature, as we are always interested
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. pilot/cmd/pilot-agent/status/server.go

    func setTransportDefaults(t *http.Transport) (*http.Transport, error) {
    	if !EnableHTTP2Probing {
    		return t, nil
    	}
    	if t.TLSHandshakeTimeout == 0 {
    		t.TLSHandshakeTimeout = defaultTransport.TLSHandshakeTimeout
    	}
    	if t.IdleConnTimeout == 0 {
    		t.IdleConnTimeout = defaultTransport.IdleConnTimeout
    	}
    	t2, err := http2.ConfigureTransports(t)
    	if err != nil {
    		return nil, err
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (1)
  3. pkg/spiffe/spiffe.go

    			Proxy:           http.ProxyFromEnvironment,
    			TLSClientConfig: config,
    			DialContext: (&net.Dialer{
    				Timeout: time.Second * 10,
    			}).DialContext,
    			IdleConnTimeout:       90 * time.Second,
    			TLSHandshakeTimeout:   10 * time.Second,
    			ExpectContinueTimeout: 1 * time.Second,
    		}
    
    		retryBackoffTime := firstRetryBackOffTime
    		startTime := time.Now()
    		var resp *http.Response
    		for {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. src/net/http/transport.go

    	// If nil, the default configuration is used.
    	// If non-nil, HTTP/2 support may not be enabled by default.
    	TLSClientConfig *tls.Config
    
    	// TLSHandshakeTimeout specifies the maximum amount of time to
    	// wait for a TLS handshake. Zero means no timeout.
    	TLSHandshakeTimeout time.Duration
    
    	// DisableKeepAlives, if true, disables HTTP keep-alives and
    	// will only use the connection to the server for a single
    	// HTTP request.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  5. cmd/update.go

    		Proxy:                 http.ProxyFromEnvironment,
    		DialContext:           xhttp.NewInternodeDialContext(timeout, globalTCPOptions),
    		IdleConnTimeout:       timeout,
    		TLSHandshakeTimeout:   timeout,
    		ExpectContinueTimeout: timeout,
    		TLSClientConfig: &tls.Config{
    			RootCAs:            globalRootCAs,
    			ClientSessionCache: tls.NewLRUClientSessionCache(tlsClientSessionCacheSize),
    		},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/filters/authentication_test.go

    				tlsConfig := &tls.Config{
    					RootCAs:    rootCAs,
    					NextProtos: []string{nextProto},
    				}
    
    				dailer := tls.Dialer{
    					Config: tlsConfig,
    				}
    
    				tr := &http.Transport{
    					TLSHandshakeTimeout: 10 * time.Second,
    					TLSClientConfig:     tlsConfig,
    					DialTLSContext: func(ctx context.Context, network, addr string) (net.Conn, error) {
    						conn, err := dailer.DialContext(ctx, network, addr)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  7. src/net/http/server.go

    	return int64(srv.maxHeaderBytes()) + 4096 // bufio slop
    }
    
    // tlsHandshakeTimeout returns the time limit permitted for the TLS
    // handshake, or zero for unlimited.
    //
    // It returns the minimum of any positive ReadHeaderTimeout,
    // ReadTimeout, or WriteTimeout.
    func (srv *Server) tlsHandshakeTimeout() time.Duration {
    	var ret time.Duration
    	for _, v := range [...]time.Duration{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  8. src/net/http/transport_test.go

    			return
    		}
    		<-testdonec
    		c.Close()
    	}()
    
    	tr := &Transport{
    		Dial: func(_, _ string) (net.Conn, error) {
    			return net.Dial("tcp", ln.Addr().String())
    		},
    		TLSHandshakeTimeout: 250 * time.Millisecond,
    	}
    	cl := &Client{Transport: tr}
    	_, err := cl.Get("https://dummy.tld/")
    	if err == nil {
    		t.Error("expected error")
    		return
    	}
    	ue, ok := err.(*url.Error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top