mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
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)
This commit is contained in:
parent
573f16c997
commit
0818c17007
@ -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 */
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user