summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-08-09 17:46:32 +0100
committerHugo Landau <hlandau@openssl.org>2023-09-01 10:45:34 +0100
commit0818c17007bbda000e9c6329a1104d09cc614517 (patch)
treeb1ccfb64aecf196a518c1df9c820b13a7a6393e9 /ssl
parent573f16c99719c9439a66a82fa256662d7cd32d47 (diff)
QUIC APL: Autoconfigure BIOs as non-blocking
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21715)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/quic/quic_impl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c
index 79011f3387..a15eb67f7b 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 */
}
}