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

Unified Diff: net/quic/quic_sent_packet_manager.cc

Issue 867033002: Replace the map in QuicAckNotifier with a counter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Change_AckNotifier_datastructures_84156430
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_ack_notifier_test.cc ('k') | no next file » | 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 3f54f9b225b213b60cdd038dd311947f4a09c22c..34bb9726f38266d40b64007883d9245618620d04 100644
--- a/net/quic/quic_sent_packet_manager.cc
+++ b/net/quic/quic_sent_packet_manager.cc
@@ -576,10 +576,10 @@ bool QuicSentPacketManager::OnPacketSent(
<< "pending_retransmissions_. sequence_number: "
<< original_sequence_number;
}
- // A notifier may be waiting to hear about ACKs for the original sequence
- // number. Inform them that the sequence number has changed.
- ack_notifier_manager_.UpdateSequenceNumber(original_sequence_number,
- sequence_number);
+ // Inform the ack notifier of retransmissions so it can calculate the
+ // retransmit rate.
+ ack_notifier_manager_.OnPacketRetransmitted(original_sequence_number,
+ sequence_number, bytes);
}
if (pending_timer_transmission_count_ > 0) {
« no previous file with comments | « net/quic/quic_ack_notifier_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698