Merge pull request #1090 from hashicorp/pooled-consul
Use a pooled transport for the Consul physical backend
This commit is contained in:
commit
c4a9d24c4a
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue