set the connect and tls timeouts to just 5s

30s is a long time for a cli tool
This commit is contained in:
Rick Olson 2015-04-28 17:35:18 -06:00
parent 5fc31505aa
commit c366638c9a

@ -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 {