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

Unified Diff: net/quic/quic_unacked_packet_map.h

Issue 551223002: Discard old packets from the QuicSentPacketManager which are only (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_flaky_test_74798317
Patch Set: Created 6 years, 3 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 | « no previous file | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_unacked_packet_map.h
diff --git a/net/quic/quic_unacked_packet_map.h b/net/quic/quic_unacked_packet_map.h
index 293c7b6a16586adf715e9addec43ad505a45eafa..a7a0a6cc54264ec5207bf77f84b18c98623b1926 100644
--- a/net/quic/quic_unacked_packet_map.h
+++ b/net/quic/quic_unacked_packet_map.h
@@ -139,6 +139,10 @@ class NET_EXPORT_PRIVATE QuicUnackedPacketMap {
// Returns true if the packet no longer has a purpose in the map.
bool IsPacketUseless(QuicPacketSequenceNumber sequence_number,
const TransmissionInfo& info) const;
+ // Returns true if the packet is useless or it's only purpose is RTT
+ // measurement, and it's old enough that is unlikely to ever happen.
+ bool IsPacketRemovable(QuicPacketSequenceNumber sequence_number,
+ const TransmissionInfo& info) const;
QuicPacketSequenceNumber largest_sent_packet_;
QuicPacketSequenceNumber largest_observed_;
« no previous file with comments | « no previous file | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698