mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
distribution: http.Transport use keep alive
registry client's http.Transport use keep alive. fix TODO(dmcgowan): Call close idle connections when complete, use keep alive Signed-off-by: HuanHuan Ye <logindaveye@gmail.com>
This commit is contained in:
@@ -71,14 +71,11 @@ func NewV2Repository(
|
||||
DualStack: true,
|
||||
}
|
||||
|
||||
// TODO(dmcgowan): Call close idle connections when complete, use keep alive
|
||||
base := &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
DialContext: direct.DialContext,
|
||||
TLSHandshakeTimeout: 10 * time.Second,
|
||||
TLSClientConfig: endpoint.TLSConfig,
|
||||
// TODO(dmcgowan): Call close idle connections when complete and use keep alive
|
||||
DisableKeepAlives: true,
|
||||
}
|
||||
|
||||
modifiers := registry.Headers(dockerversion.DockerUserAgent(ctx), metaHeaders)
|
||||
|
||||
Reference in New Issue
Block a user