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

Unified Diff: net/quic/core/congestion_control/tcp_cubic_sender_base.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_base.cc
diff --git a/net/quic/core/congestion_control/tcp_cubic_sender_base.cc b/net/quic/core/congestion_control/tcp_cubic_sender_base.cc
index 069bb161c86f3380049a8a382c6709072f61f98c..c8d89309490d1b55072b87854b3abc9550369bb7 100644
--- a/net/quic/core/congestion_control/tcp_cubic_sender_base.cc
+++ b/net/quic/core/congestion_control/tcp_cubic_sender_base.cc
@@ -123,7 +123,7 @@ float TcpCubicSenderBase::RenoBeta() const {
void TcpCubicSenderBase::OnCongestionEvent(
bool rtt_updated,
QuicByteCount prior_in_flight,
- QuicTime /*event_time*/,
+ QuicTime event_time,
const CongestionVector& acked_packets,
const CongestionVector& lost_packets) {
if (rtt_updated && InSlowStart() &&
@@ -138,13 +138,14 @@ void TcpCubicSenderBase::OnCongestionEvent(
}
for (CongestionVector::const_iterator it = acked_packets.begin();
it != acked_packets.end(); ++it) {
- OnPacketAcked(it->first, it->second, prior_in_flight);
+ OnPacketAcked(it->first, it->second, prior_in_flight, event_time);
}
}
void TcpCubicSenderBase::OnPacketAcked(QuicPacketNumber acked_packet_number,
QuicByteCount acked_bytes,
- QuicByteCount prior_in_flight) {
+ QuicByteCount prior_in_flight,
+ QuicTime event_time) {
largest_acked_packet_number_ =
std::max(acked_packet_number, largest_acked_packet_number_);
if (InRecovery()) {
@@ -154,7 +155,8 @@ void TcpCubicSenderBase::OnPacketAcked(QuicPacketNumber acked_packet_number,
}
return;
}
- MaybeIncreaseCwnd(acked_packet_number, acked_bytes, prior_in_flight);
+ MaybeIncreaseCwnd(acked_packet_number, acked_bytes, prior_in_flight,
+ event_time);
if (InSlowStart()) {
hybrid_slow_start_.OnPacketAcked(acked_packet_number);
}
« no previous file with comments | « net/quic/core/congestion_control/tcp_cubic_sender_base.h ('k') | net/quic/core/congestion_control/tcp_cubic_sender_bytes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698