gfe-relnote: In QUIC cwnd bootstrapping experiment, protect decreasing cwnd gain and pacing gain by gfe2_reloadable_flag_quic_conservative_cwnd_and_pacing_gains.
PiperOrigin-RevId: 251425886
Change-Id: Iac1e74e3edc15eeed50dbeaa09655af9984da68a
diff --git a/quic/core/congestion_control/bbr_sender.cc b/quic/core/congestion_control/bbr_sender.cc
index 3c975df..39fecda 100644
--- a/quic/core/congestion_control/bbr_sender.cc
+++ b/quic/core/congestion_control/bbr_sender.cc
@@ -369,10 +369,13 @@
// Only decrease cwnd if allow_cwnd_to_decrease is true.
return;
}
- // Decreases cwnd gain and pacing gain. Please note, if pacing_rate_ has
- // been calculated, it cannot decrease in STARTUP phase.
- set_high_gain(kDerivedHighCWNDGain);
- set_high_cwnd_gain(kDerivedHighCWNDGain);
+ if (GetQuicReloadableFlag(quic_conservative_cwnd_and_pacing_gains)) {
+ // Decreases cwnd gain and pacing gain. Please note, if pacing_rate_ has
+ // been calculated, it cannot decrease in STARTUP phase.
+ QUIC_RELOADABLE_FLAG_COUNT(quic_conservative_cwnd_and_pacing_gains);
+ set_high_gain(kDerivedHighCWNDGain);
+ set_high_cwnd_gain(kDerivedHighCWNDGain);
+ }
congestion_window_ = new_cwnd;
}
}