Force Nonstop to use fcntl(F_GETFL) in BIO_sock_nbio

In tracking down a hang, we found that nonstop platforms were falling
into the if #ifdef FIONBIO clause in the implementation of
BIO_sock_nbio.  While the platform defines this macro, sockets set with
this continued to operate in blocking mode.  Given that the platform
also support O_NONBLOCK, adjust the ifdef to have the nonstop platform
use that method to ensure that sockets enter blocking mode

Related-To #22588

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22696)
This commit is contained in:
Neil Horman 2023-11-10 15:31:23 -05:00 committed by Tomas Mraz
parent 9890cc42da
commit f63e1b48ac
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ int BIO_socket_nbio(int s, int mode)
int l;
l = mode;
# ifdef FIONBIO
# if defined(FIONBIO) && !defined(OPENSSL_SYS_TANDEM)
l = mode;
ret = BIO_socket_ioctl(s, FIONBIO, &l);