]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
urldata: remove proxy_connect_closed bit
authorStefan Eissing <stefan@eissing.org>
Wed, 28 Aug 2024 10:26:19 +0000 (12:26 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 28 Aug 2024 12:00:42 +0000 (14:00 +0200)
The connections 'proxy_connect_closed' bit was not used any more. Remove
it.

Closes #14708

lib/multi.c
lib/url.c
lib/urldata.h

index 9aeb60a140fd40001a457ca41b98d866dd9d226e..057d70d5abb3837cb85789bcb882b15faceba772 100644 (file)
@@ -2014,22 +2014,12 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
       /* this is HTTP-specific, but sending CONNECT to a proxy is HTTP... */
       DEBUGASSERT(data->conn);
       result = Curl_http_connect(data, &protocol_connected);
-#ifndef CURL_DISABLE_PROXY
-      if(data->conn->bits.proxy_connect_closed) {
+      if(!result) {
         rc = CURLM_CALL_MULTI_PERFORM;
-        /* connect back to proxy again */
-        result = CURLE_OK;
-        multi_done(data, CURLE_OK, FALSE);
-        multistate(data, MSTATE_CONNECT);
+        /* initiate protocol connect phase */
+        multistate(data, MSTATE_PROTOCONNECT);
       }
       else
-#endif
-        if(!result) {
-          rc = CURLM_CALL_MULTI_PERFORM;
-          /* initiate protocol connect phase */
-          multistate(data, MSTATE_PROTOCONNECT);
-        }
-      else
         stream_error = TRUE;
       break;
 #endif
index 1d9d652bd60f6446b415a882b6d443825cd89fc4..276715509e8f5b519cdb66de0049631fec782db6 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -3671,14 +3671,6 @@ CURLcode Curl_setup_conn(struct Curl_easy *data,
     return result;
   }
 
-#ifndef CURL_DISABLE_PROXY
-  /* set proxy_connect_closed to false unconditionally already here since it
-     is used strictly to provide extra information to a parent function in the
-     case of proxy CONNECT failures and we must make sure we do not have it
-     lingering set from a previous invoke */
-  conn->bits.proxy_connect_closed = FALSE;
-#endif
-
 #ifdef CURL_DO_LINEEND_CONV
   data->state.crlf_conversions = 0; /* reset CRLF conversion counter */
 #endif /* CURL_DO_LINEEND_CONV */
index f0b6d595751dc50984c9b974c76439ca19b2df0d..7182f3edc4287c82b44a4fbe73c3bace2ac7fea7 100644 (file)
@@ -501,9 +501,6 @@ struct ConnectBits {
                          This is implicit when SSL-protocols are used through
                          proxies, but can also be enabled explicitly by
                          apps */
-  BIT(proxy_connect_closed); /* TRUE if a proxy disconnected the connection
-                                in a CONNECT request with auth, so that
-                                libcurl should reconnect and continue. */
   BIT(proxy); /* if set, this transfer is done through a proxy - any type */
 #endif
   /* always modify bits.close with the connclose() and connkeep() macros! */