mirror of
https://git.maid.zone/stuff/soundcloak.git
synced 2025-12-10 13:49:39 +05:00
also retry requests if connection closed; add /_/info endpoint
This commit is contained in:
@@ -123,7 +123,7 @@ func DoWithRetry(httpc *fasthttp.HostClient, req *fasthttp.Request, resp *fastht
|
||||
return nil
|
||||
}
|
||||
|
||||
if !os.IsTimeout(err) && err != fasthttp.ErrTimeout {
|
||||
if !os.IsTimeout(err) && err != fasthttp.ErrTimeout && err != fasthttp.ErrConnectionClosed {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user