From a9b0b14149fa845a26e4ba97c87a78adfc1870b8 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Fri, 29 Apr 2016 00:03:09 +0100 Subject: [PATCH] Increase update url fetching timeout to 3 seconds (#1704) --- update-main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update-main.go b/update-main.go index 064240c4..1fc7eab9 100644 --- a/update-main.go +++ b/update-main.go @@ -145,9 +145,9 @@ func getReleaseUpdate(updateURL string) { newUpdateURLPrefix := updateURL + "/" + runtime.GOOS + "-" + runtime.GOARCH newUpdateURL := newUpdateURLPrefix + "/mc.shasum" - // Instantiate a new client with 1 sec timeout. + // Instantiate a new client with 3 sec timeout. client := &http.Client{ - Timeout: 500 * time.Millisecond, + Timeout: 3000 * time.Millisecond, } // Get the downloadURL.