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

Unified Diff: net/quic/congestion_control/tcp_cubic_sender_packets.cc

Issue 2002103002: Implement a QUIC No PRR connection option, NPRR. Protected by FLAGS_quic_allow_no_prr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@122422703
Patch Set: Created 4 years, 7 months 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/congestion_control/tcp_cubic_sender_packets.cc
diff --git a/net/quic/congestion_control/tcp_cubic_sender_packets.cc b/net/quic/congestion_control/tcp_cubic_sender_packets.cc
index 5595815f6d95a120711412bb7d0e2b005168df60..33960dff76abe0d4428ab14ddbe2d6c4799aaa41 100644
--- a/net/quic/congestion_control/tcp_cubic_sender_packets.cc
+++ b/net/quic/congestion_control/tcp_cubic_sender_packets.cc
@@ -118,7 +118,9 @@ void TcpCubicSenderPackets::OnPacketLost(QuicPacketNumber packet_number,
++stats_->slowstart_packets_lost;
}
- prr_.OnPacketLost(bytes_in_flight);
+ if (!no_prr_) {
+ prr_.OnPacketLost(bytes_in_flight);
+ }
// TODO(jri): Separate out all of slow start into a separate class.
if (slow_start_large_reduction_ && InSlowStart()) {

Powered by Google App Engine
This is Rietveld 408576698