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
This commit is contained in:
Daniel Stenberg 2021-07-23 23:52:12 +02:00
parent e8cd39345e
commit c27a70a591
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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 */