From ebc0fbc0e86d8ef635b9578348bf21bb8a4f480a Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Sat, 15 Aug 2026 11:20:23 +0200 Subject: [PATCH] connect: only set connect timer on first socket Only collect connect/appconnect timer stats on the first socket. Fixes #22587 Closes #22592 Reported-by: GLaDOS-418 on github --- lib/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connect.c b/lib/connect.c index dd401939ff..9d904b4e04 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -309,7 +309,7 @@ static CURLcode conn_connect_trace(struct Curl_easy *data, static void conn_report_connect_stats(struct Curl_cfilter *cf, struct Curl_easy *data) { - if(cf) { + if(cf && (cf->sockindex == FIRSTSOCKET)) { struct curltime connected; struct curltime appconnected;