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

Unified Diff: net/quic/quic_sent_packet_manager.cc

Issue 575573003: Add a LOG(DFATAL) to a case where packets are acked before being sent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Allow_number_of_open_streams_to_grow_75393293
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_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 6b2b9deae10e6f800c379a1b20bfd4f359cc041d..12ddf29f7441943375c31b2e587cef2a59da0fa9 100644
--- a/net/quic/quic_sent_packet_manager.cc
+++ b/net/quic/quic_sent_packet_manager.cc
@@ -720,8 +720,10 @@ bool QuicSentPacketManager::MaybeUpdateRTT(
// sequence numbers will include the ACK aggregation delay.
const TransmissionInfo& transmission_info =
unacked_packets_.GetTransmissionInfo(ack_frame.largest_observed);
- // Don't update the RTT if it hasn't been sent.
+ // Ensure the packet has a valid sent time.
if (transmission_info.sent_time == QuicTime::Zero()) {
+ LOG(DFATAL) << "Acked packet has zero sent time, largest_observed:"
ramant (doing other things) 2014/09/15 19:56:44 rch, ian: should we make this DLOG(DFATAL) in chro
Ryan Hamilton 2014/09/15 21:44:54 I don't have strong feelings about LOG(DFATAL) vs
ramant (doing other things) 2014/09/15 21:47:50 Sounds great.
+ << ack_frame.largest_observed;
return false;
}
« no previous file with comments | « no previous file | net/quic/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698