- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for pingTimeout (0.34 sec)
-
internal/http/transports.go
// // connection. 5 minutes is sufficient time for any idle connection. // trhttp2.ReadIdleTimeout = 5 * time.Minute // // PingTimeout is the timeout after which the connection will be closed // // if a response to Ping is not received. // trhttp2.PingTimeout = dialTimeout // // DisableCompression, if true, prevents the Transport from // // requesting compression with an "Accept-Encoding: gzip"
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/net/util_test.go
} t2, err := http2.ConfigureTransports(transport) if err != nil { t.Fatalf("failed to configure *http.Transport: %+v", err) } t2.ReadIdleTimeout = time.Second t2.PingTimeout = time.Second // Create an HTTP2 connection to reuse later resp, err := c.Get("https://" + lb.ln.Addr().String()) if err != nil { t.Fatalf("unexpected error: %+v", err) } defer resp.Body.Close()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 20 19:02:55 UTC 2023 - 4.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/net/http.go
// https://github.com/kubernetes/client-go/issues/374 and // https://github.com/kubernetes/kubernetes/issues/87615. t2.ReadIdleTimeout = time.Duration(readIdleTimeoutSeconds()) * time.Second t2.PingTimeout = time.Duration(pingTimeoutSeconds()) * time.Second return nil } func allowsHTTP2(t *http.Transport) bool { if t.TLSClientConfig == nil || len(t.TLSClientConfig.NextProtos) == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 05 00:08:58 UTC 2022 - 20.8K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/server.go
t.IdleConnTimeout = defaultTransport.IdleConnTimeout } t2, err := http2.ConfigureTransports(t) if err != nil { return nil, err } t2.ReadIdleTimeout = time.Duration(30) * time.Second t2.PingTimeout = time.Duration(15) * time.Second return t, nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 31.1K bytes - Viewed (0) -
src/net/http/h2_bundle.go
func (t *http2Transport) disableCompression() bool { return t.DisableCompression || (t.t1 != nil && t.t1.DisableCompression) } func (t *http2Transport) pingTimeout() time.Duration { if t.PingTimeout == 0 { return 15 * time.Second } return t.PingTimeout } // ConfigureTransport configures a net/http HTTP/1 Transport to use HTTP/2. // It returns an error if t1 has already been HTTP/2-enabled. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 364.1K bytes - Viewed (0)