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 |