Skip to content

Commit

Permalink
quicly_get_first_timeout should not return "now" if 0rtt is rejecte…
Browse files Browse the repository at this point in the history
…d, otherwise we'd hot loop
  • Loading branch information
kazuho committed Jul 29, 2024
1 parent 0d5188b commit 7367ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/quicly.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7367ae8

Please sign in to comment.