BUG/MINOR: quic: Do not probe from an already probing packet number space

During a handshake, after having prepared a probe upon a PTO expiration from
process_timer(), we wake up the I/O handler to make it send probing packets.
This handler first treat incoming packets  which trigger a fast retransmission
leading to send too much probing (duplicated) packets. In this cas we cancel
the fast retranmission.
This commit is contained in:
Frédéric Lécaille 2022-03-30 14:44:49 +02:00 committed by Amaury Denoyelle
parent 03235d78ae
commit 5cfb4edca7

View File

@ -2320,6 +2320,15 @@ static void qc_prep_hdshk_fast_retrans(struct quic_conn *qc)
struct quic_tx_packet *pkt;
struct list *tmp = &itmp;
/* Do not probe from a packet number space if some probing
* was already asked.
*/
if (qel->pktns->tx.pto_probe) {
qel = hqel;
if (qel->pktns->tx.pto_probe)
return;
}
start:
pkt = NULL;
pkts = &qel->pktns->tx.pkts;