From 3b1ab5a3a0a10798ea9a1547b6cb50182edaeb5b Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Tue, 21 Feb 2023 10:18:59 +0000 Subject: Enhance quic_tserver test to fully test thread assisted mode Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/20348) --- ssl/quic/quic_impl.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ssl/quic/quic_impl.c') diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index 766a88633a..483b694c7d 100644 --- a/ssl/quic/quic_impl.c +++ b/ssl/quic/quic_impl.c @@ -256,6 +256,14 @@ void ossl_quic_conn_set_override_now_cb(SSL *s, qc->override_now_cb_arg = now_cb_arg; } +void ossl_quic_conn_force_assist_thread_wake(SSL *s) +{ + QUIC_CONNECTION *qc = QUIC_CONNECTION_FROM_SSL(s); + + if (qc->is_thread_assisted && qc->started) + ossl_quic_thread_assist_notify_deadline_changed(&qc->thread_assist); +} + /* * QUIC Front-End I/O API: Network BIO Configuration * ================================================= -- cgit v1.2.3