🎨 更新包下载超时 10m
This commit is contained in:
parent
0d050990a1
commit
ab482a143c
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ func downloadInstallPkg(pkgURL, checksum string) (err error) {
|
|||
}
|
||||
|
||||
logging.LogInfof("downloading install package [%s]", pkgURL)
|
||||
client := req.C().SetTLSHandshakeTimeout(7 * time.Second).SetTimeout(30 * time.Minute)
|
||||
client := req.C().SetTLSHandshakeTimeout(7 * time.Second).SetTimeout(10 * time.Minute)
|
||||
callback := func(info req.DownloadInfo) {
|
||||
//logging.LogDebugf("downloading install package [%s %.2f%%]", pkgURL, float64(info.DownloadedSize)/float64(info.Response.ContentLength)*100.0)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue