From ab482a143c1808cba1995cd261eb4429540ef8a9 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 8 Nov 2022 14:55:59 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=9B=B4=E6=96=B0=E5=8C=85=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E8=B6=85=E6=97=B6=2010m?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/updater.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/updater.go b/kernel/model/updater.go index 9f374130f..a180f851e 100644 --- a/kernel/model/updater.go +++ b/kernel/model/updater.go @@ -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) }