Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Unified Diff: net/quic/core/congestion_control/cubic.cc

Issue 2571643002: relnote: Use event_time instead of ApproximateNow() in QUIC cubic code. Protected by --quic_use_eve… (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/congestion_control/cubic.h ('k') | net/quic/core/congestion_control/cubic_bytes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/congestion_control/cubic.cc
diff --git a/net/quic/core/congestion_control/cubic.cc b/net/quic/core/congestion_control/cubic.cc
index f0a1871b70155b0f1a57325f25f5737be88fcbd5..0d6ff818df41b35cf0adf9c0dd548da8f7c9305e 100644
--- a/net/quic/core/congestion_control/cubic.cc
+++ b/net/quic/core/congestion_control/cubic.cc
@@ -106,10 +106,13 @@ QuicPacketCount Cubic::CongestionWindowAfterPacketLoss(
QuicPacketCount Cubic::CongestionWindowAfterAck(
QuicPacketCount current_congestion_window,
- QuicTime::Delta delay_min) {
+ QuicTime::Delta delay_min,
+ QuicTime event_time) {
acked_packets_count_ += 1; // Packets acked.
epoch_packets_count_ += 1;
- QuicTime current_time = clock_->ApproximateNow();
+ QuicTime current_time = FLAGS_quic_use_event_time
+ ? event_time
+ : clock_->ApproximateNow();
// Cubic is "independent" of RTT, the update is limited by the time elapsed.
if (last_congestion_window_ == current_congestion_window &&
« no previous file with comments | « net/quic/core/congestion_control/cubic.h ('k') | net/quic/core/congestion_control/cubic_bytes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698