- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IsHTTP2ConnectionLost (0.33 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/net/util.go
var errno syscall.Errno if errors.As(err, &errno) { return errno == syscall.ECONNRESET } return false } // Returns if the given err is "http2: client connection lost" error. func IsHTTP2ConnectionLost(err error) bool { return err != nil && strings.Contains(err.Error(), "http2: client connection lost") } // Returns if the given err is "connection refused" error func IsConnectionRefused(err error) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 20 19:02:55 UTC 2023 - 1.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/net/util_test.go
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/apiserver/pkg/util/webhook/webhook.go
// Otherwise it returns false for an immediate fail. func DefaultShouldRetry(err error) bool { // these errors indicate a transient error that should be retried. if utilnet.IsConnectionReset(err) || utilnet.IsHTTP2ConnectionLost(err) || apierrors.IsInternalError(err) || apierrors.IsTimeout(err) || apierrors.IsTooManyRequests(err) { return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 20 19:02:55 UTC 2023 - 6.3K bytes - Viewed (0)