From 029ece0fd2f3d72edeb1c4ac471f4fd3c58ebbd8 Mon Sep 17 00:00:00 2001 From: xenolf Date: Thu, 21 Jul 2016 03:27:34 +0200 Subject: [PATCH] Well a timeout of 10 something is a good idea indeed... --- acme/http.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acme/http.go b/acme/http.go index 99d452e9..180db786 100644 --- a/acme/http.go +++ b/acme/http.go @@ -8,13 +8,14 @@ import ( "net/http" "runtime" "strings" + "time" ) // UserAgent (if non-empty) will be tacked onto the User-Agent string in requests. var UserAgent string // HTTPClient is an HTTP client with a reasonable timeout value. -var HTTPClient = http.Client{Timeout: 10} +var HTTPClient = http.Client{Timeout: 10 * time.Second} const ( // defaultGoUserAgent is the Go HTTP package user agent string. Too