Commit c8e922e413 for openssl.org
commit c8e922e4138d6845b5c16ae703a34a4afeb7d288
Author: Liu Dongmiao <473522+liudongmiao@users.noreply.github.com>
Date: Wed Nov 18 12:33:48 2026 +0800
quic: clear pending probe requests when a space is discarded
A PTO or anti-deadlock probe still pending for the Initial or Handshake
space could no longer be sent once that space was discarded, so every
later datagram was built as a probe, outside congestion control. Clear
the requests along with the other state of the space.
Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Saša NedvÄ›dický <sashan@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Merge-date: Fri Dec 4 13:55:46 2026
Merged-from: https://github.com/openssl/openssl/pull/33782
diff --git a/ssl/quic/quic_ackm.c b/ssl/quic/quic_ackm.c
index bd0fb966e3..8e2577a37b 100644
--- a/ssl/quic/quic_ackm.c
+++ b/ssl/quic/quic_ackm.c
@@ -1329,6 +1329,11 @@ int ossl_ackm_on_pkt_space_discarded(OSSL_ACKM *ackm, int pkt_space)
ackm->time_of_last_ack_eliciting_pkt[pkt_space] = ossl_time_zero();
ackm->loss_time[pkt_space] = ossl_time_zero();
ackm->pto_count = 0;
+ ackm->pending_probe.pto[pkt_space] = 0;
+ if (pkt_space == QUIC_PN_SPACE_INITIAL)
+ ackm->pending_probe.anti_deadlock_initial = 0;
+ else if (pkt_space == QUIC_PN_SPACE_HANDSHAKE)
+ ackm->pending_probe.anti_deadlock_handshake = 0;
ackm->discarded[pkt_space] = 1;
ackm->ack_eliciting_bytes_in_flight[pkt_space] = 0;
ackm_set_loss_detection_timer(ackm);