mirror of
https://github.com/curl/curl.git
synced 2026-07-30 16:18:02 +03:00
urldata: remove proxy_connect_closed bit
The connections 'proxy_connect_closed' bit was not used any more. Remove it. Closes #14708
This commit is contained in:
parent
80f9fce56d
commit
9280bbea3f
3 changed files with 3 additions and 24 deletions
16
lib/multi.c
16
lib/multi.c
|
|
@ -2014,22 +2014,12 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
|
|||
/* this is HTTP-specific, but sending CONNECT to a proxy is HTTP... */
|
||||
DEBUGASSERT(data->conn);
|
||||
result = Curl_http_connect(data, &protocol_connected);
|
||||
#ifndef CURL_DISABLE_PROXY
|
||||
if(data->conn->bits.proxy_connect_closed) {
|
||||
if(!result) {
|
||||
rc = CURLM_CALL_MULTI_PERFORM;
|
||||
/* connect back to proxy again */
|
||||
result = CURLE_OK;
|
||||
multi_done(data, CURLE_OK, FALSE);
|
||||
multistate(data, MSTATE_CONNECT);
|
||||
/* initiate protocol connect phase */
|
||||
multistate(data, MSTATE_PROTOCONNECT);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
if(!result) {
|
||||
rc = CURLM_CALL_MULTI_PERFORM;
|
||||
/* initiate protocol connect phase */
|
||||
multistate(data, MSTATE_PROTOCONNECT);
|
||||
}
|
||||
else
|
||||
stream_error = TRUE;
|
||||
break;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue