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 = |