From cc516d23db65229ea25fdb8a8a03b157fdc5da54 Mon Sep 17 00:00:00 2001 From: yusing Date: Sun, 15 Feb 2026 20:03:01 +0800 Subject: [PATCH] refactor(health): allow connection reuse in HTTP pinger - Commented out the SetConnectionClose method to enable connection reuse for HTTP requests, improving performance. - This is a follow up commit to be9af03a1ea733c89bac2f81bdad5eba282ca51c setting MaxConnsPerHost to 1000 --- internal/health/check/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/health/check/http.go b/internal/health/check/http.go index 24f359e7..d49c7fd2 100644 --- a/internal/health/check/http.go +++ b/internal/health/check/http.go @@ -45,7 +45,7 @@ func HTTP(url *url.URL, method, path string, timeout time.Duration) (types.Healt req.SetRequestURI(url.JoinPath(path).String()) req.Header.SetMethod(method) setCommonHeaders(req.Header.Set) - req.SetConnectionClose() + // req.SetConnectionClose() // allow connection reuse start := time.Now() respErr := pinger.DoTimeout(req, resp, timeout)