🎨 更新包下载超时 30m

This commit is contained in:
Liang Ding 2022-11-07 22:12:29 +08:00
parent 76b832b02c
commit 0f9acd78c4
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -171,7 +171,7 @@ func downloadInstallPkg(pkgURL, checksum string) (err error) {
}
logging.LogInfof("downloading install package [%s]", pkgURL)
client := req.C().SetTLSHandshakeTimeout(7 * time.Second).SetTimeout(10 * time.Minute)
client := req.C().SetTLSHandshakeTimeout(7 * time.Second).SetTimeout(30 * time.Minute)
callback := func(info req.DownloadInfo) {
//logging.LogDebugf("downloading install package [%s %.2f%%]", pkgURL, float64(info.DownloadedSize)/float64(info.Response.ContentLength)*100.0)
}