mirror of
https://github.com/openssl/openssl.git
synced 2024-12-16 21:43:42 +08:00
Ask libssl if we should retry not the socket
s_server was asking the underlying socket if it is a retryable error rather than libssl which has more information. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3286)
This commit is contained in:
parent
dcf88c5b79
commit
c4666bfa13
@ -2646,7 +2646,7 @@ static int init_ssl_connection(SSL *con)
|
||||
i = SSL_accept(con);
|
||||
|
||||
if (i <= 0)
|
||||
retry = BIO_sock_should_retry(i);
|
||||
retry = !SSL_want_nothing(con);
|
||||
#ifdef CERT_CB_TEST_RETRY
|
||||
{
|
||||
while (i <= 0
|
||||
@ -2656,7 +2656,7 @@ static int init_ssl_connection(SSL *con)
|
||||
"LOOKUP from certificate callback during accept\n");
|
||||
i = SSL_accept(con);
|
||||
if (i <= 0)
|
||||
retry = BIO_sock_should_retry(i);
|
||||
retry = !SSL_want_nothing(con);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@ -2677,7 +2677,7 @@ static int init_ssl_connection(SSL *con)
|
||||
BIO_printf(bio_s_out, "LOOKUP not successful\n");
|
||||
i = SSL_accept(con);
|
||||
if (i <= 0)
|
||||
retry = BIO_sock_should_retry(i);
|
||||
retry = !SSL_want_nothing(con);
|
||||
}
|
||||
#endif
|
||||
} while (i < 0 && SSL_waiting_for_async(con));
|
||||
|
Loading…
Reference in New Issue
Block a user