From c366638c9a5badbf5ddec0db40484d48883acb1f Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Tue, 28 Apr 2015 17:35:18 -0600 Subject: [PATCH] set the connect and tls timeouts to just 5s 30s is a long time for a cli tool --- lfs/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lfs/http.go b/lfs/http.go index b2f48193..4e9bb0bd 100644 --- a/lfs/http.go +++ b/lfs/http.go @@ -28,10 +28,10 @@ func (c *Configuration) HttpClient() *http.Client { tr := &http.Transport{ Proxy: http.ProxyFromEnvironment, Dial: (&net.Dialer{ - Timeout: 30 * time.Second, + Timeout: 5 * time.Second, KeepAlive: 30 * time.Second, }).Dial, - TLSHandshakeTimeout: 30 * time.Second, + TLSHandshakeTimeout: 5 * time.Second, } sslVerify, _ := c.GitConfig("http.sslverify") if sslVerify == "false" || len(os.Getenv("GIT_SSL_NO_VERIFY")) > 0 {