Skip to content

Commit

Permalink
QUIC CHANNEL: Handle ping deadlines differently
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from #22476)
  • Loading branch information
hlandau authored and mattcaswell committed Oct 25, 2023
1 parent 29f6338 commit c7ed5e4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ssl/quic/quic_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1951,6 +1951,15 @@ static void ch_tick(QUIC_TICK_RESULT *res, void *arg, uint32_t flags)
int pn_space = ossl_quic_enc_level_to_pn_space(ch->tx_enc_level);

ossl_quic_tx_packetiser_schedule_ack_eliciting(ch->txp, pn_space);

/*
* If we have no CC budget at this time we cannot process the above
* PING request immediately. In any case we have scheduled the
* request so bump the ping deadline. If we don't do this we will
* busy-loop endlessly as the above deadline comparison condition
* will still be met.
*/
ch_update_ping_deadline(ch);
}

/* Write any data to the network due to be sent. */
Expand Down

0 comments on commit c7ed5e4

Please sign in to comment.