From c27a70a591a4a53bd0782d1f6ab3b818b617c7b4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 23 Jul 2021 23:52:12 +0200 Subject: http_proxy: clear 'sending' when the outgoing request is sent ... 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/http_proxy.c b/lib/http_proxy.c index a7f7aa353..a0168cbf5 100644 --- a/lib/http_proxy.c +++ b/lib/http_proxy.c @@ -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 */ -- cgit v1.2.1