Increase update url fetching timeout to 3 seconds (#1704)

This commit is contained in:
Anis Elleuch
2016-04-28 16:03:09 -07:00
committed by Harshavardhana
parent 9a454e714d
commit a9b0b14149
+2 -2
View File
@@ -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.