Bump github.com/containers/common from 0.33.0 to 0.33.1

Bumps [github.com/containers/common](https://github.com/containers/common) from 0.33.0 to 0.33.1.
- [Release notes](https://github.com/containers/common/releases)
- [Commits](https://github.com/containers/common/compare/v0.33.0...v0.33.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
dependabot-preview[bot]
2021-01-14 09:18:57 +00:00
committed by Daniel J Walsh
parent 2e90a8af5a
commit 0c0a17b641
6 changed files with 9 additions and 9 deletions

View File

@@ -69,7 +69,7 @@ func isRetryable(err error) bool {
}
return isRetryable(e.Err)
case syscall.Errno:
return shouldRestart(e)
return isErrnoRetryable(e)
case errcode.Errors:
// if this error is a group of errors, process them all in turn
for i := range e {
@@ -94,10 +94,10 @@ func isRetryable(err error) bool {
return false
}
func shouldRestart(e error) bool {
func isErrnoRetryable(e error) bool {
switch e {
case syscall.ECONNREFUSED, syscall.EINTR, syscall.EAGAIN, syscall.EBUSY, syscall.ENETDOWN, syscall.ENETUNREACH, syscall.ENETRESET, syscall.ECONNABORTED, syscall.ECONNRESET, syscall.ETIMEDOUT, syscall.EHOSTDOWN, syscall.EHOSTUNREACH:
return true
}
return shouldRestartPlatform(e)
return isErrnoERESTART(e)
}

View File

@@ -4,6 +4,6 @@ import (
"syscall"
)
func shouldRestartPlatform(e error) bool {
func isErrnoERESTART(e error) bool {
return e == syscall.ERESTART
}

View File

@@ -2,6 +2,6 @@
package retry
func shouldRestartPlatform(e error) bool {
func isErrnoERESTART(e error) bool {
return false
}