fix: 尽量避免因代理问题导致google request异常

This commit is contained in:
Qu Xuan
2020-04-22 10:48:47 +08:00
parent daeca7f7bf
commit d9e5df08db
+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