From 4a2cb99853eaa554a0e098ade463d44045fb1fab Mon Sep 17 00:00:00 2001 From: Adam Lesinski Date: Thu, 14 Aug 2025 16:04:26 -0700 Subject: [PATCH] Use the same HTTP timeout settings as skopeo Since we've replaced skopeo in this path, we should try to mimic its behavior, which is show to work well in production. --- cmd/convertor/main.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/cmd/convertor/main.go b/cmd/convertor/main.go index 023e8ce5..6086c975 100644 --- a/cmd/convertor/main.go +++ b/cmd/convertor/main.go @@ -208,14 +208,12 @@ Version: ` + commitID, // Create registry resolver (same logic as in builder.go) transport := &http.Transport{ - TLSClientConfig: tlsConfig, - Proxy: http.ProxyFromEnvironment, - DialContext: (&net.Dialer{Timeout: 30 * time.Second, KeepAlive: 30 * time.Second}).DialContext, - MaxIdleConns: 10, - IdleConnTimeout: 30 * time.Second, - ResponseHeaderTimeout: 5 * time.Second, - TLSHandshakeTimeout: 5 * time.Second, - ExpectContinueTimeout: 5 * time.Second, + TLSClientConfig: tlsConfig, + Proxy: http.ProxyFromEnvironment, + DialContext: (&net.Dialer{Timeout: 30 * time.Second, KeepAlive: 30 * time.Second}).DialContext, + MaxIdleConns: 100, + IdleConnTimeout: 90 * time.Second, + TLSHandshakeTimeout: 10 * time.Second, } client := &http.Client{Transport: transport} registryResolver := docker.NewResolver(docker.ResolverOptions{