Update pkg/retry/retry.go

Co-authored-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Daniel J Walsh 2020-08-23 06:39:43 -04:00 committed by GitHub
parent 499c4ef5a7
commit 69012df43d
1 changed files with 1 additions and 1 deletions

View File

@ -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)