Merge pull request #1090 from hashicorp/pooled-consul

Use a pooled transport for the Consul physical backend
This commit is contained in:
Jeff Mitchell 2016-02-17 16:57:32 -05:00
commit c4a9d24c4a
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ func newConsulBackend(conf map[string]string) (Backend, error) {
return nil, err
}
transport := cleanhttp.DefaultTransport()
transport := cleanhttp.DefaultPooledTransport()
transport.MaxIdleConnsPerHost = 4
transport.TLSClientConfig = tlsClientConfig
consulConf.HttpClient.Transport = transport
}