MCPcopy Create free account
hub / github.com/containerd/containerd / isPortError

Function isPortError

core/remotes/docker/resolver.go:1013–1023  ·  view source on GitHub ↗
(err error, host string)

Source from the content-addressed store, hash-verified

1011}
1012
1013func isPortError(err error, host string) bool {
1014 if isConnError(err) || os.IsTimeout(err) {
1015 if _, port, _ := net.SplitHostPort(host); port != "" {
1016 // Port is specified, will not retry on different port with scheme change
1017 return false
1018 }
1019 return true
1020 }
1021
1022 return false
1023}

Callers 2

RoundTripMethod · 0.85

Calls 1

isConnErrorFunction · 0.70

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…