From 4c7a0f54f76d01167ee3938880e2e94bbc4e4647 Mon Sep 17 00:00:00 2001 From: Joe Lothan Date: Mon, 25 May 2026 16:20:31 -0400 Subject: [PATCH] disable keepalives so connections stop after data transfer complete --- pipeline/03_icon_download/download.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pipeline/03_icon_download/download.go b/pipeline/03_icon_download/download.go index a557071..4e5b8e7 100644 --- a/pipeline/03_icon_download/download.go +++ b/pipeline/03_icon_download/download.go @@ -63,10 +63,9 @@ func processIcon(icon IconRow, cfg Config) DownloadResult { // httpTransport is shared across all goroutines for connection pooling and TLS session reuse. var httpTransport = &http.Transport{ - MaxIdleConns: 1000, - MaxIdleConnsPerHost: 2, - IdleConnTimeout: 30 * time.Second, - DisableKeepAlives: false, + MaxIdleConns: 0, + MaxIdleConnsPerHost: 0, + DisableKeepAlives: true, DialContext: (&net.Dialer{ Timeout: 5 * time.Second, KeepAlive: 30 * time.Second,