mirror of https://github.com/moparisthebest/curl
proxy: skip SSL initialization for closed connections
This prevents a "Descriptor is not a socket" error for WinSSL. Reported-by: Antony74@users.noreply.github.com Reviewed-by: Jay Satiro Fixes https://github.com/curl/curl/issues/1239
This commit is contained in:
parent
0afbcfd800
commit
e84a863dc3
|
@ -1359,6 +1359,10 @@ CURLcode Curl_http_connect(struct connectdata *conn, bool *done)
|
||||||
if(result)
|
if(result)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
|
if(conn->bits.proxy_connect_closed)
|
||||||
|
/* this is not an error, just part of the connection negotiation */
|
||||||
|
return CURLE_OK;
|
||||||
|
|
||||||
if(CONNECT_FIRSTSOCKET_PROXY_SSL())
|
if(CONNECT_FIRSTSOCKET_PROXY_SSL())
|
||||||
return CURLE_OK; /* wait for HTTPS proxy SSL initialization to complete */
|
return CURLE_OK; /* wait for HTTPS proxy SSL initialization to complete */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue