summaryrefslogtreecommitdiffstats
path: root/ssl/quic
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2024-02-02 12:30:41 +0000
committerHugo Landau <hlandau@openssl.org>2024-02-10 11:37:14 +0000
commit9387bd4c25cf37613bcecc173e63f93327eb47ec (patch)
treea43a77d441d1035fa95a4c42a2f0b158752e9367 /ssl/quic
parentf945986a180d0af7cc3029ffbae0c826f06e5c9d (diff)
QUIC POLLING: Implement autotick
Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23495)
Diffstat (limited to 'ssl/quic')
-rw-r--r--ssl/quic/quic_impl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c
index 42e7b085e7..d0dc04bb37 100644
--- a/ssl/quic/quic_impl.c
+++ b/ssl/quic/quic_impl.c
@@ -3921,7 +3921,8 @@ static int test_poll_event_os(QUIC_CONNECTION *qc, int is_uni)
}
QUIC_TAKES_LOCK
-int ossl_quic_conn_poll_events(SSL *ssl, uint64_t events, uint64_t *p_revents)
+int ossl_quic_conn_poll_events(SSL *ssl, uint64_t events, int do_tick,
+ uint64_t *p_revents)
{
QCTX ctx;
uint64_t revents = 0;
@@ -3931,6 +3932,9 @@ int ossl_quic_conn_poll_events(SSL *ssl, uint64_t events, uint64_t *p_revents)
quic_lock(ctx.qc);
+ if (do_tick)
+ ossl_quic_reactor_tick(ossl_quic_channel_get_reactor(ctx.qc->ch), 0);
+
if (ctx.xso != NULL) {
/* SSL object has a stream component. */