Support rebooting workers

This commit is contained in:
Ben Sarmiento
2024-01-28 23:04:39 +01:00
parent 4ff88372bc
commit 15a24a58a2
7 changed files with 79 additions and 47 deletions

View File

@@ -248,7 +248,7 @@ func (r *HTTPClient) shouldRetry(resp *http.Response, reqHasRangeHeader bool, er
}
}
}
if err != nil && strings.Contains(err.Error(), "timeout awaiting response headers") {
if err != nil && strings.Contains(err.Error(), "timeout") {
return 1
}
if resp != nil {