gfe-relnote: Notify SendAlgorithm on neutered packets in QUIC. Protected by (enabling blocked) --gfe2_reloadable_flag_quic_avoid_overestimate_bandwidth_with_aggregation.
This is split from cl/279746200 for easier review. I'll unblock this flag in that cl.
PiperOrigin-RevId: 296301871
Change-Id: I499357505e3b817a82b6f4f2172f7b890b684b32
diff --git a/quic/core/quic_sent_packet_manager.cc b/quic/core/quic_sent_packet_manager.cc
index e4f46d8..a055299 100644
--- a/quic/core/quic_sent_packet_manager.cc
+++ b/quic/core/quic_sent_packet_manager.cc
@@ -431,11 +431,25 @@
}
void QuicSentPacketManager::NeuterUnencryptedPackets() {
- unacked_packets_.NeuterUnencryptedPackets();
+ for (QuicPacketNumber packet_number :
+ unacked_packets_.NeuterUnencryptedPackets()) {
+ if (avoid_overestimate_bandwidth_with_aggregation_) {
+ QUIC_RELOADABLE_FLAG_COUNT_N(
+ quic_avoid_overestimate_bandwidth_with_aggregation, 1, 4);
+ send_algorithm_->OnPacketNeutered(packet_number);
+ }
+ }
}
void QuicSentPacketManager::NeuterHandshakePackets() {
- unacked_packets_.NeuterHandshakePackets();
+ for (QuicPacketNumber packet_number :
+ unacked_packets_.NeuterHandshakePackets()) {
+ if (avoid_overestimate_bandwidth_with_aggregation_) {
+ QUIC_RELOADABLE_FLAG_COUNT_N(
+ quic_avoid_overestimate_bandwidth_with_aggregation, 2, 4);
+ send_algorithm_->OnPacketNeutered(packet_number);
+ }
+ }
}
bool QuicSentPacketManager::ShouldAddMaxAckDelay() const {