Skip to content

Commit

Permalink
Merge pull request #587 from h2o/kazuho/avoid-hot-loop-0rtt
Browse files Browse the repository at this point in the history
prevent hot loop when 0rtt is rejected
  • Loading branch information
kazuho authored Jul 29, 2024
2 parents 0d5188b + 7367ae8 commit 07c15d0
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 07c15d0

Please sign in to comment.