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

Unified Diff: net/quic/quic_connection.cc

Issue 1613513003: Early connection migration in QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Style nit fixed. Created 4 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
Index: net/quic/quic_connection.cc
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
index 0e8371e5bf625937ec8c730e1c6eb86a6fb3ea6d..170f602a0a1ac6fe14235c65f56e6647d826af80 100644
--- a/net/quic/quic_connection.cc
+++ b/net/quic/quic_connection.cc
@@ -1870,6 +1870,10 @@ void QuicConnection::OnRetransmissionTimeout() {
}
sent_packet_manager_.OnRetransmissionTimeout();
+ // Migrate connection if appropriate before sending retransmissions.
+ if (sent_packet_manager_.IsPeerMaybeUnreachable()) {
+ visitor_->MaybeMigrateConnection();
+ }
WriteIfNotBlocked();
// A write failure can result in the connection being closed, don't attempt to

Powered by Google App Engine
This is Rietveld 408576698