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

Unified Diff: net/quic/quic_unacked_packet_map.cc

Issue 968923005: Remove TCP and BBR's max congestion window. No practical change, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@minor_simplification_PendingRetransmission_87254408
Patch Set: Created 5 years, 10 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
« no previous file with comments | « net/quic/quic_protocol.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_unacked_packet_map.cc
diff --git a/net/quic/quic_unacked_packet_map.cc b/net/quic/quic_unacked_packet_map.cc
index be665d2228ef683a47326fe90a8249d33ffb5466..c2b6fec8fbc095ee807e5b79ff4169c727816cf3 100644
--- a/net/quic/quic_unacked_packet_map.cc
+++ b/net/quic/quic_unacked_packet_map.cc
@@ -13,6 +13,14 @@ using std::max;
namespace net {
+namespace {
+
+// Maximum amount of reordering before packets are considered useless for
+// RTT measurement purposes.
+const QuicPacketCount kMaxReorderingForRtt = 200;
+
+} // anonymous namespace
+
QuicUnackedPacketMap::QuicUnackedPacketMap()
: largest_sent_packet_(0),
largest_observed_(0),
@@ -273,7 +281,7 @@ bool QuicUnackedPacketMap::IsPacketRemovable(
QuicPacketSequenceNumber sequence_number,
const TransmissionInfo& info) const {
return (!IsPacketUsefulForMeasuringRtt(sequence_number, info) ||
- unacked_packets_.size() > kMaxTcpCongestionWindow) &&
+ unacked_packets_.size() > kMaxReorderingForRtt) &&
!IsPacketUsefulForCongestionControl(info) &&
!IsPacketUsefulForRetransmittableData(info);
}
« no previous file with comments | « net/quic/quic_protocol.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698