gfe-relnote: In QUIC, re-calculate pacing rate when cwnd gets bootstrapped. Protected by gfe2_reloadable_flag_quic_bbr_fix_pacing_rate.
PiperOrigin-RevId: 277502654
Change-Id: I2c76d7a6ddb7e6097ed294d08b51678e455fa2b1
diff --git a/quic/core/congestion_control/bbr_sender.cc b/quic/core/congestion_control/bbr_sender.cc
index b0fd50d..1ba6b42 100644
--- a/quic/core/congestion_control/bbr_sender.cc
+++ b/quic/core/congestion_control/bbr_sender.cc
@@ -372,6 +372,13 @@
set_high_cwnd_gain(kDerivedHighCWNDGain);
}
congestion_window_ = new_cwnd;
+ if (GetQuicReloadableFlag(quic_bbr_fix_pacing_rate)) {
+ QUIC_RELOADABLE_FLAG_COUNT(quic_bbr_fix_pacing_rate);
+ // Pace at the rate of new_cwnd / RTT.
+ QuicBandwidth new_pacing_rate =
+ QuicBandwidth::FromBytesAndTimeDelta(congestion_window_, GetMinRtt());
+ pacing_rate_ = std::max(pacing_rate_, new_pacing_rate);
+ }
}
}