summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-07-23 23:52:12 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-07-25 13:24:38 +0200
commitc27a70a591a4a53bd0782d1f6ab3b818b617c7b4 (patch)
treecef02134c19e088904b2dbb69c176e3d67272a58
parente8cd39345e98cb543a07985effa365bb2ac1a1c1 (diff)
downloadcurl-c27a70a591a4a53bd0782d1f6ab3b818b617c7b4.tar.gz
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
-rw-r--r--lib/http_proxy.c1
1 files changed, 1 insertions, 0 deletions
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 */