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

Unified Diff: net/quic/quic_sent_packet_manager.cc

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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_test.cc ('k') | net/quic/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_sent_packet_manager.cc
diff --git a/net/quic/quic_sent_packet_manager.cc b/net/quic/quic_sent_packet_manager.cc
index f1804f97ea093a36fe875795b2a7945cf9b62d66..b71b300684adc8f1d29852ec7a432be94ccffc29 100644
--- a/net/quic/quic_sent_packet_manager.cc
+++ b/net/quic/quic_sent_packet_manager.cc
@@ -848,7 +848,9 @@ const QuicTime QuicSentPacketManager::GetRetransmissionTime() const {
case RTO_MODE: {
// The RTO is based on the first outstanding packet.
const QuicTime sent_time =
- unacked_packets_.GetFirstInFlightPacketSentTime();
+ FLAGS_quic_rto_uses_last_sent
+ ? unacked_packets_.GetLastPacketSentTime()
+ : unacked_packets_.GetFirstInFlightPacketSentTime();
QuicTime rto_time = sent_time.Add(GetRetransmissionDelay());
// Wait for TLP packets to be acked before an RTO fires.
QuicTime tlp_time =
« no previous file with comments | « net/quic/quic_protocol_test.cc ('k') | net/quic/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698