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

Unified Diff: net/quic/core/congestion_control/tcp_cubic_sender_bytes.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
Index: net/quic/core/congestion_control/tcp_cubic_sender_bytes.cc
diff --git a/net/quic/core/congestion_control/tcp_cubic_sender_bytes.cc b/net/quic/core/congestion_control/tcp_cubic_sender_bytes.cc
index ce656036bb5a237631acf8207830cc6257ebbbf9..2ed7acd26a9f1007c7be6990792fdcb7826d767b 100644
--- a/net/quic/core/congestion_control/tcp_cubic_sender_bytes.cc
+++ b/net/quic/core/congestion_control/tcp_cubic_sender_bytes.cc
@@ -157,7 +157,8 @@ QuicByteCount TcpCubicSenderBytes::GetSlowStartThreshold() const {
void TcpCubicSenderBytes::MaybeIncreaseCwnd(
QuicPacketNumber acked_packet_number,
QuicByteCount acked_bytes,
- QuicByteCount prior_in_flight) {
+ QuicByteCount prior_in_flight,
+ QuicTime event_time) {
QUIC_BUG_IF(InRecovery()) << "Never increase the CWND during recovery.";
// Do not increase the congestion window unless the sender is close to using
// the current window.
@@ -191,10 +192,10 @@ void TcpCubicSenderBytes::MaybeIncreaseCwnd(
<< " slowstart threshold: " << slowstart_threshold_
<< " congestion window count: " << num_acked_packets_;
} else {
- congestion_window_ =
- std::min(max_congestion_window_,
- cubic_.CongestionWindowAfterAck(
- acked_bytes, congestion_window_, rtt_stats_->min_rtt()));
+ congestion_window_ = std::min(
+ max_congestion_window_,
+ cubic_.CongestionWindowAfterAck(acked_bytes, congestion_window_,
+ rtt_stats_->min_rtt(), event_time));
DVLOG(1) << "Cubic; congestion window: " << congestion_window_
<< " slowstart threshold: " << slowstart_threshold_;
}
« no previous file with comments | « net/quic/core/congestion_control/tcp_cubic_sender_bytes.h ('k') | net/quic/core/congestion_control/tcp_cubic_sender_packets.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698