]> git.ipfire.org Git - thirdparty/openssl.git/commit
Force Nonstop to use fcntl(F_GETFL) in BIO_sock_nbio
authorNeil Horman <nhorman@openssl.org>
Fri, 10 Nov 2023 20:31:23 +0000 (15:31 -0500)
committerTomas Mraz <tomas@openssl.org>
Tue, 14 Nov 2023 06:43:33 +0000 (07:43 +0100)
commitf63e1b48ac893dd6110452e70ed08f191547cd89
treefbbf3375184f841cf4c04d4ba09653ded42ccd15
parent9890cc42daff5e2d0cad01ac4bf78c391f599a6e
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)
crypto/bio/bio_sock.c