We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2652135 + c8b3ee4 commit f2ab874Copy full SHA for f2ab874
utils/http.go
@@ -25,6 +25,11 @@ func init() {
25
}
26
27
func shouldRetry(request *http.Request, response *http.Response, withDelay time.Duration) bool {
28
+ // no response is a connection timeout which we can retry
29
+ if response == nil {
30
+ return true
31
+ }
32
+
33
// 429 Too Many Requests is recoverable. Sometimes the server puts
34
// a Retry-After response header to indicate when the server is
35
// available to start processing request from client.
0 commit comments