]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http_proxy: clear 'sending' when the outgoing request is sent
authorDaniel Stenberg <daniel@haxx.se>
Fri, 23 Jul 2021 21:52:12 +0000 (23:52 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 25 Jul 2021 11:24:38 +0000 (13:24 +0200)
... so that Curl_connect_getsock() will know how to wait for the socket
to become readable and not writable after the entire CONNECT request has
been issued.

Regression added in 7.77.0

Reported-by: zloi-user on github
Assisted-by: Jay Satiro
Fixes #7155
Closes #7484

lib/http_proxy.c

index a7f7aa353f2aa65ec7252ebdc347eb87580611b2..a0168cbf5aed2f2397507f75599af53629ec48c1 100644 (file)
@@ -390,6 +390,7 @@ static CURLcode CONNECT(struct Curl_easy *data,
         k->upload_fromhere += bytes_written;
         return result;
       }
+      http->sending = HTTPSEND_NADA;
       /* if nothing left to send, continue */
     }
     { /* READING RESPONSE PHASE */