Merge pull request #5902 from ioito/automated-cherry-pick-of-#5900-upstream-release-3.1

Automated cherry pick of #5900: fix: 尽量避免因代理问题导致google request异常
This commit is contained in:
Zexi Li
2020-04-22 15:12:20 +08:00
committed by GitHub
+1
View File
@@ -483,6 +483,7 @@ func _jsonRequest(client *http.Client, method httputils.THttpMethod, url string,
"EOF",
"i/o timeout",
"TLS handshake timeout",
"connection reset by peer",
} {
if strings.Index(err.Error(), msg) >= 0 {
retry = true