pause both directions to prevent pending data check, fix indentations

This commit is contained in:
Stefan Eissing 2025-08-14 15:41:34 +02:00
parent 00f5dae81a
commit 8282c4f7c8
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View file

@ -4603,6 +4603,7 @@ static CURLcode ossl_connect_step2(struct Curl_cfilter *cf,
#ifdef SSL_ERROR_WANT_RETRY_VERIFY
if(SSL_ERROR_WANT_RETRY_VERIFY == detail) {
CURL_TRC_CF(data, cf, "SSL_connect() -> want retry_verify");
Curl_xfer_pause_send(data, TRUE);
Curl_xfer_pause_recv(data, TRUE);
return CURLE_AGAIN;
}

View file

@ -61,9 +61,9 @@ static struct t758_ctx {
static const char *t758_tag(void)
{
curl_msnprintf(t758_ctx.buf, sizeof(t758_ctx.buf),
"[T758-%d-%d] [%d/%d]",
t758_ctx.max_socket_calls, t758_ctx.max_timer_calls,
t758_ctx.socket_calls, t758_ctx.timer_calls);
"[T758-%d-%d] [%d/%d]",
t758_ctx.max_socket_calls, t758_ctx.max_timer_calls,
t758_ctx.socket_calls, t758_ctx.timer_calls);
return t758_ctx.buf;
}
@ -73,7 +73,6 @@ static void t758_msg(const char *msg)
}
struct t758_Sockets {
curl_socket_t *sockets;
int count; /* number of sockets actually stored in array */
@ -154,8 +153,8 @@ static int t758_curlSocketCallback(CURL *easy, curl_socket_t s, int action,
{
struct t758_ReadWriteSockets *sockets = userp;
(void)easy; /* unused */
(void)socketp; /* unused */
(void)easy;
(void)socketp;
t758_ctx.socket_calls++;
t758_msg("-> CURLMOPT_SOCKETFUNCTION");