Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsConnectionReset (0.84 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/net/util.go

    		return true
    	}
    	return false
    }
    
    // Returns if the given err is "connection reset by peer" error.
    func IsConnectionReset(err error) bool {
    	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.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 20 19:02:55 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. 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)
Back to top