From 5edaf522a872e441629239a53a489efbb00177c7 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Wed, 17 Feb 2016 16:53:30 -0500 Subject: [PATCH] Use a pooled transport for the Consul physical backend and give it 4 idle connections --- physical/consul.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/physical/consul.go b/physical/consul.go index 5d9b26722..00a59af3b 100644 --- a/physical/consul.go +++ b/physical/consul.go @@ -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 }