Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for IdleConnTimeout (0.23 sec)

  1. src/net/http/doc.go

    	resp, err := client.Do(req)
    	// ...
    
    For control over proxies, TLS configuration, keep-alives,
    compression, and other settings, create a [Transport]:
    
    	tr := &http.Transport{
    		MaxIdleConns:       10,
    		IdleConnTimeout:    30 * time.Second,
    		DisableCompression: true,
    	}
    	client := &http.Client{Transport: tr}
    	resp, err := client.Get("https://example.com")
    
    Clients and Transports are safe for concurrent use by multiple
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. internal/http/transports.go

    		Proxy:                 http.ProxyFromEnvironment,
    		DialContext:           dialContext,
    		MaxIdleConnsPerHost:   maxIdleConnsPerHost,
    		WriteBufferSize:       WriteBufferSize,
    		ReadBufferSize:        ReadBufferSize,
    		IdleConnTimeout:       15 * time.Second,
    		ResponseHeaderTimeout: 15 * time.Minute, // Conservative timeout is the default (for MinIO internode)
    		TLSHandshakeTimeout:   10 * time.Second,
    		TLSClientConfig:       &tlsClientConfig,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. src/net/http/transport.go

    	// The HTTP/2 implementation manages the idle timer itself
    	// (see idleConnTimeout in h2_bundle.go).
    	if t.IdleConnTimeout > 0 && pconn.alt == nil {
    		if pconn.idleTimer != nil {
    			pconn.idleTimer.Reset(t.IdleConnTimeout)
    		} else {
    			pconn.idleTimer = time.AfterFunc(t.IdleConnTimeout, pconn.closeConnIfStillIdle)
    		}
    	}
    	pconn.idleAt = time.Now()
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  4. pilot/cmd/pilot-agent/status/server.go

    	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
    	}
    	t2.ReadIdleTimeout = time.Duration(30) * time.Second
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  5. pkg/spiffe/spiffe.go

    		httpClient.Transport = &http.Transport{
    			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()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. cmd/update.go

    	var updateTransport http.RoundTripper = &http.Transport{
    		Proxy:                 http.ProxyFromEnvironment,
    		DialContext:           xhttp.NewInternodeDialContext(timeout, globalTCPOptions),
    		IdleConnTimeout:       timeout,
    		TLSHandshakeTimeout:   timeout,
    		ExpectContinueTimeout: timeout,
    		TLSClientConfig: &tls.Config{
    			RootCAs:            globalRootCAs,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  7. src/net/http/transport_test.go

    			return true
    		})
    		break
    	}
    }
    
    // Issue 16208: Go 1.7 crashed after Transport.IdleConnTimeout if an
    // HTTP/2 connection was established but its caller no longer
    // wanted it. (Assuming the connection cache was enabled, which it is
    // by default)
    //
    // This test reproduced the crash by setting the IdleConnTimeout low
    // (to make the test reasonable) and then making a request which is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  8. src/net/http/h2_bundle.go

    }
    
    func (t *http2Transport) idleConnTimeout() time.Duration {
    	// to keep things backwards compatible, we use non-zero values of
    	// IdleConnTimeout, followed by using the IdleConnTimeout on the underlying
    	// http1 transport, followed by 0
    	if t.IdleConnTimeout != 0 {
    		return t.IdleConnTimeout
    	}
    
    	if t.t1 != nil {
    		return t.t1.IdleConnTimeout
    	}
    
    	return 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Transport.DisableKeepAlives", Field, 0},
    		{"Transport.ExpectContinueTimeout", Field, 6},
    		{"Transport.ForceAttemptHTTP2", Field, 13},
    		{"Transport.GetProxyConnectHeader", Field, 16},
    		{"Transport.IdleConnTimeout", Field, 7},
    		{"Transport.MaxConnsPerHost", Field, 11},
    		{"Transport.MaxIdleConns", Field, 7},
    		{"Transport.MaxIdleConnsPerHost", Field, 0},
    		{"Transport.MaxResponseHeaderBytes", Field, 7},
    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