We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc3805a commit af6ada9Copy full SHA for af6ada9
client/client.go
@@ -47,6 +47,7 @@ import (
47
"net/url"
48
"path"
49
"strings"
50
+ "time"
51
52
"github.com/docker/docker/api"
53
"github.com/docker/docker/api/types"
@@ -167,6 +168,9 @@ func defaultHTTPClient(host string) (*http.Client, error) {
167
168
}
169
transport := &http.Transport{}
170
_ = sockets.ConfigureTransport(transport, hostURL.Scheme, hostURL.Host)
171
+ transport.MaxIdleConns = 6
172
+ transport.IdleConnTimeout = 30 * time.Second
173
+ // transport.DisableKeepAlives = true
174
return &http.Client{
175
Transport: transport,
176
CheckRedirect: CheckRedirect,
0 commit comments