mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:43:33 +03:00
auto-pausing on verify callback retry
When an application install its own OpenSSL verify callback and that callback invokes `SSL_set_retry_verify()`, the transfer is automatically paused and does not progress the connect attempt any further until unpaused via `curl_easy_pause(). Added test758 to verify. Original PR by @Natris Reporting on libcurl mailing list
This commit is contained in:
parent
c24d4be057
commit
c5afc28952
7 changed files with 557 additions and 7 deletions
10
lib/multi.c
10
lib/multi.c
|
|
@ -1026,9 +1026,13 @@ CURLMcode Curl_multi_pollset(struct Curl_easy *data,
|
|||
|
||||
case MSTATE_CONNECTING:
|
||||
case MSTATE_TUNNELING:
|
||||
result = mstate_connecting_pollset(data, ps);
|
||||
if(!result)
|
||||
result = Curl_conn_adjust_pollset(data, data->conn, ps);
|
||||
if(!Curl_xfer_recv_is_paused(data)) {
|
||||
result = mstate_connecting_pollset(data, ps);
|
||||
if(!result)
|
||||
result = Curl_conn_adjust_pollset(data, data->conn, ps);
|
||||
}
|
||||
else
|
||||
expect_sockets = FALSE;
|
||||
break;
|
||||
|
||||
case MSTATE_PROTOCONNECT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue