Skip to content

Commit

Permalink
Check if retry error is a Timeout
Browse files Browse the repository at this point in the history
[NO NEW TESTS NEEDED] No idea how to cause this situation.

Fixes: containers/podman#14359

Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed May 26, 2022
1 parent c26b04e commit d4019a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/retry/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func isRetryable(err error) bool {
return false
}
return true
case net.Error:
if e.Timeout() {
return true
}
case *net.OpError:
return isRetryable(e.Err)
case *url.Error: // This includes errors returned by the net/http client.
Expand Down

0 comments on commit d4019a1

Please sign in to comment.