Commit 0c49b19d authored by Administrator's avatar Administrator

Update client.go

parent fe329323
......@@ -119,9 +119,11 @@ func (c *client) GetWithProxyAuth(ctx *context.UlfsaarContext, urls, ip, port, u
}
request.Header.Set(UserAgent, UserAgentValue)
httpResp, httpErr := request.Get(urls)
for httpErr != nil {
limitCount := 0
for httpErr != nil && limitCount < 3 {
time.Sleep(10 * time.Second)
httpResp, httpErr = request.Get(urls)
limitCount++
}
if httpResp != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment