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

Unified Diff: net/quic/quic_sent_packet_manager.cc

Issue 1435553004: Add OnConnectionMigration method to QuicSentPacketManager. Add OnConnectionMigration interface to S… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106845785
Patch Set: Created 5 years, 1 month 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_sent_packet_manager.h ('k') | net/quic/test_tools/quic_test_utils.h » ('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 586d27a17fa08b7f7ba6a8ee69e647b5a50bd4e5..20d357a04922ec53eb24ae4234f7a1cf69ccad8d 100644
--- a/net/quic/quic_sent_packet_manager.cc
+++ b/net/quic/quic_sent_packet_manager.cc
@@ -935,4 +935,19 @@ void QuicSentPacketManager::EnablePacing() {
kInitialUnpacedBurst));
}
+void QuicSentPacketManager::OnConnectionMigration(PeerAddressChangeType type) {
+ if (type == UNKNOWN) {
+ return;
+ }
+
+ if (type == NAT_PORT_REBINDING || type == IPV4_SUBNET_REBINDING) {
+ // Rtt and cwnd do not need to be reset when the peer address change is
+ // considered to be caused by NATs.
+ return;
+ }
+
+ rtt_stats_.OnConnectionMigration();
+ send_algorithm_->OnConnectionMigration();
+}
+
} // namespace net
« no previous file with comments | « net/quic/quic_sent_packet_manager.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698