use api.Config.Timeout instead of http.Client.Timeout for 60s request timeout default (#7469)

This commit is contained in:
Mike Jarmy 2019-09-13 08:28:58 -04:00 committed by GitHub
parent f048a7c1be
commit ecfcdc329e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -140,8 +140,8 @@ func DefaultConfig() *Config {
config := &Config{
Address: "https://127.0.0.1:8200",
HttpClient: cleanhttp.DefaultPooledClient(),
Timeout: time.Second * 60,
}
config.HttpClient.Timeout = time.Second * 60
transport := config.HttpClient.Transport.(*http.Transport)
transport.TLSHandshakeTimeout = 10 * time.Second