(err error, host string)
| 1011 | } |
| 1012 | |
| 1013 | func 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 | } |
searching dependent graphs…