From: Hugo Landau Date: Wed, 9 Aug 2023 16:46:32 +0000 (+0100) Subject: QUIC APL: Autoconfigure BIOs as non-blocking X-Git-Tag: openssl-3.2.0-alpha1~91 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0818c17007bbda000e9c6329a1104d09cc614517;p=thirdparty%2Fopenssl.git QUIC APL: Autoconfigure BIOs as non-blocking Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/21715) --- diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index 79011f3387f..a15eb67f7b3 100644 --- a/ssl/quic/quic_impl.c +++ b/ssl/quic/quic_impl.c @@ -851,6 +851,8 @@ void ossl_quic_conn_set0_net_rbio(SSL *s, BIO *net_rbio) } else { ctx.qc->can_poll_net_rbio = 1; } + + BIO_set_nbio(net_rbio, 1); /* best effort autoconfig */ } } @@ -895,6 +897,8 @@ void ossl_quic_conn_set0_net_wbio(SSL *s, BIO *net_wbio) ossl_quic_channel_set_peer_addr(ctx.qc->ch, &ctx.qc->init_peer_addr); } + + BIO_set_nbio(net_wbio, 1); /* best effort autoconfig */ } }