From 7367ae81f5f17db43da18804aa1b5b4384f7781a Mon Sep 17 00:00:00 2001 From: Kazuho Oku Date: Mon, 29 Jul 2024 11:59:57 +0900 Subject: [PATCH] `quicly_get_first_timeout` should not return "now" if 0rtt is rejected, otherwise we'd hot loop --- lib/quicly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/quicly.c b/lib/quicly.c index 74f1ed9a..ac90462f 100644 --- a/lib/quicly.c +++ b/lib/quicly.c @@ -1428,7 +1428,7 @@ static int scheduler_can_send(quicly_conn_t *conn) } /* scheduler would never have data to send, until application keys become available */ - if (conn->application == NULL) + if (conn->application == NULL || conn->application->cipher.egress.key.aead == NULL) return 0; int conn_is_saturated = !(conn->egress.max_data.sent < conn->egress.max_data.permitted);