Skip to content

Commit

Permalink
QUIC TXP: Generate forced PINGs correctly
Browse files Browse the repository at this point in the history
Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl#21458)
  • Loading branch information
hlandau authored and t8m committed Jul 21, 2023
1 parent c206f2a commit 1e2e683
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ssl/quic/quic_txp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2605,7 +2605,9 @@ static int txp_generate_for_el(OSSL_QUIC_TX_PACKETISER *txp,
/* PING */
tx_helper_unrestrict(h);

if (a.require_ack_eliciting && !have_ack_eliciting && a.allow_ping) {
if ((a.require_ack_eliciting
|| (txp->force_ack_eliciting & (1UL << pn_space)) != 0)
&& !have_ack_eliciting && a.allow_ping) {
WPACKET *wpkt;

wpkt = tx_helper_begin(h);
Expand Down

0 comments on commit 1e2e683

Please sign in to comment.