Update pkg/retry/retry.go
Co-authored-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
parent
499c4ef5a7
commit
69012df43d
|
|
@ -60,7 +60,7 @@ func isRetryable(err error) bool {
|
||||||
case *net.OpError:
|
case *net.OpError:
|
||||||
return isRetryable(e.Err)
|
return isRetryable(e.Err)
|
||||||
case *url.Error: // This includes errors returned by the net/http client.
|
case *url.Error: // This includes errors returned by the net/http client.
|
||||||
if e.Err == io.EOF {
|
if e.Err == io.EOF { // Happens when a server accepts a HTTP connection and sends EOF
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return isRetryable(e.Err)
|
return isRetryable(e.Err)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue