From: Daniel Stenberg Date: Fri, 23 Jul 2021 21:52:12 +0000 (+0200) Subject: http_proxy: clear 'sending' when the outgoing request is sent X-Git-Tag: curl-7_79_0~178 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c27a70a591a4a53bd0782d1f6ab3b818b617c7b4;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/http_proxy.c b/lib/http_proxy.c index a7f7aa353f..a0168cbf5a 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 */