mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
parent
35c7aac3c6
commit
c7bc689fc3
@ -58,8 +58,9 @@ static CURLcode https_proxy_connect(struct connectdata *conn, int sockindex)
|
|||||||
Curl_ssl_connect_nonblocking(conn, sockindex,
|
Curl_ssl_connect_nonblocking(conn, sockindex,
|
||||||
&conn->bits.proxy_ssl_connected[sockindex]);
|
&conn->bits.proxy_ssl_connected[sockindex]);
|
||||||
if(result)
|
if(result)
|
||||||
conn->bits.close = TRUE; /* a failed connection is marked for closure to
|
/* a failed connection is marked for closure to prevent (bad) re-use or
|
||||||
prevent (bad) re-use or similar */
|
similar */
|
||||||
|
connclose(conn, "TLS handshake failed");
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
#else
|
#else
|
||||||
|
@ -639,7 +639,7 @@ static CURLcode multi_done(struct Curl_easy *data,
|
|||||||
) || conn->bits.close
|
) || conn->bits.close
|
||||||
|| (premature && !(conn->handler->flags & PROTOPT_STREAM))) {
|
|| (premature && !(conn->handler->flags & PROTOPT_STREAM))) {
|
||||||
CURLcode res2;
|
CURLcode res2;
|
||||||
conn->bits.close = TRUE; /* forcibly prevents reuse */
|
connclose(conn, "disconnecting");
|
||||||
CONN_UNLOCK(data);
|
CONN_UNLOCK(data);
|
||||||
res2 = Curl_disconnect(data, conn, premature);
|
res2 = Curl_disconnect(data, conn, premature);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user