| 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);
|
| }
|
|
|