From 66996077c7e76bdd1e77f1bcbebbaf627fef84d7 Mon Sep 17 00:00:00 2001 From: lingbo Date: Sat, 27 Sep 2025 15:21:08 +0800 Subject: [PATCH] fix(apiclient): Disable the HTTP Client Keep-Alive connection to improve the potential TCP connection leakage caused by event stream reading Signed-off-by: lingbo --- pkg/apiclient/http1/facade.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/apiclient/http1/facade.go b/pkg/apiclient/http1/facade.go index 70674fec58e4..d954cd13d5ff 100644 --- a/pkg/apiclient/http1/facade.go +++ b/pkg/apiclient/http1/facade.go @@ -75,6 +75,7 @@ func (h Facade) EventStreamReader(ctx context.Context, in interface{}, path stri TLSClientConfig: &tls.Config{ InsecureSkipVerify: h.insecureSkipVerify, }, + DisableKeepAlives: true, }, } }