Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IsHTTP2ConnectionLost (0.33 sec)

  1. 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)
  2. staging/src/k8s.io/apimachinery/pkg/util/net/util_test.go

    	// connection. This mimics a broken TCP connection that's not properly
    	// closed.
    	close(stopCh)
    	_, err = c.Get("https://" + lb.ln.Addr().String())
    	if !IsHTTP2ConnectionLost(err) {
    		t.Fatalf("expected HTTP2ConnectionLost error, got %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 20 19:02:55 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. 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