From 3c34b3c87e3794746918294077683f0d8b1e4533 Mon Sep 17 00:00:00 2001 From: James Lal Date: Mon, 18 May 2015 13:11:36 -0700 Subject: [PATCH] Increase default connection timeout to 30s Closes #13307 Signed-off-by: James Lal --- docs/registry.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/registry.go b/docs/registry.go index 163e2de37..aff28eaa4 100644 --- a/docs/registry.go +++ b/docs/registry.go @@ -52,8 +52,9 @@ func newClient(jar http.CookieJar, roots *x509.CertPool, certs []tls.Certificate switch timeout { case ConnectTimeout: httpTransport.Dial = func(proto string, addr string) (net.Conn, error) { - // Set the connect timeout to 5 seconds - d := net.Dialer{Timeout: 5 * time.Second, DualStack: true} + // Set the connect timeout to 30 seconds to allow for slower connection + // times... + d := net.Dialer{Timeout: 30 * time.Second, DualStack: true} conn, err := d.Dial(proto, addr) if err != nil {