From 61b851d748d61e8116ce72e49881d914690dd772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Fri, 28 Jan 2022 21:38:45 +0100 Subject: [PATCH] MINOR: quic: Try to accept 0-RTT connections When a listener managed to derive 0-RTT RX secrets we consider it accepted the early data. So we enqueue the connection into the accept queue. --- src/xprt_quic.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/xprt_quic.c b/src/xprt_quic.c index a1fa7dbde..d7e680526 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -779,6 +779,12 @@ int ha_quic_set_encryption_secrets(SSL *ssl, enum ssl_encryption_level_t level, } rx->flags |= QUIC_FL_TLS_SECRETS_SET; + /* Enqueue this connection asap if we could derive O-RTT secrets as + * listener. Note that a listener derives only RX secrets for this + * level. + */ + if (qc_is_listener(qc) && level == ssl_encryption_early_data) + quic_accept_push_qc(qc); if (!write_secret) goto tp;