From 613ffdfe12bb46c58ca45e24ad7de9868d147728 Mon Sep 17 00:00:00 2001 From: User Date: Fri, 8 Aug 2025 14:18:04 +0300 Subject: [PATCH] badger review changes --- lib/multi.c | 15 ++++++--------- lib/url.c | 5 ----- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/lib/multi.c b/lib/multi.c index e9ea69d948..ce4762c5b6 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -2333,7 +2333,6 @@ static CURLMcode state_connect(struct Curl_multi *multi, static bool is_altsvc_error(CURLcode rc) { switch(rc) { - case CURLE_URL_MALFORMAT: case CURLE_COULDNT_RESOLVE_PROXY: case CURLE_COULDNT_RESOLVE_HOST: case CURLE_COULDNT_CONNECT: @@ -2689,15 +2688,13 @@ statemachine_end: infof(data, "Alt-Svc connection failed(%d). " "Retrying with original target", result); if(data->conn) { - /* Do not attempt to send data over a connection that timed out */ - bool dead_connection = result == CURLE_OPERATION_TIMEDOUT; - struct connectdata *conn = data->conn; + struct connectdata *conn = data->conn; - /* This is where we make sure that the conn pointer is reset. - We do not have to do this in every case block above where a - failure is detected */ - Curl_detach_connection(data); - Curl_conn_terminate(data, conn, dead_connection); + /* This is where we make sure that the conn pointer is reset. + We do not have to do this in every case block above where a + failure is detected */ + Curl_detach_connection(data); + Curl_conn_terminate(data, conn, FALSE); } stream_error = FALSE; diff --git a/lib/url.c b/lib/url.c index 101ea7f78e..a96d23e7c2 100644 --- a/lib/url.c +++ b/lib/url.c @@ -3857,11 +3857,6 @@ CURLcode Curl_connect(struct Curl_easy *data, struct connectdata *conn; bool reused = FALSE; -#ifndef CURL_DISABLE_ALTSVC - if(data->asi) - data->asi->used = FALSE; -#endif - *asyncp = FALSE; /* assume synchronous resolves by default */ *protocol_done = FALSE;