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

Unified Diff: net/quic/quic_chromium_client_session.cc

Issue 2124753005: Implements migration of a QUIC connection to a different destination address if specified by the se… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@write-error
Patch Set: fixing linker error. Created 4 years, 5 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_chromium_client_session.h ('k') | net/quic/quic_client_session_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_chromium_client_session.cc
diff --git a/net/quic/quic_chromium_client_session.cc b/net/quic/quic_chromium_client_session.cc
index f18ff5bce303fa4c86e59d0c744605778d1c8a62..a5769e9faffd36f7835b39f3382d874e55c5447e 100644
--- a/net/quic/quic_chromium_client_session.cc
+++ b/net/quic/quic_chromium_client_session.cc
@@ -737,6 +737,15 @@ void QuicChromiumClientSession::OnClosedStream() {
}
}
+void QuicChromiumClientSession::OnConfigNegotiated() {
+ QuicClientSessionBase::OnConfigNegotiated();
+ if (stream_factory_ && config()->HasReceivedAlternateServerAddress()) {
+ // Server has sent an alternate address to connect to.
+ stream_factory_->MigrateSessionToNewPeerAddress(
+ this, config()->ReceivedAlternateServerAddress(), net_log_);
+ }
+}
+
void QuicChromiumClientSession::OnCryptoHandshakeEvent(
CryptoHandshakeEvent event) {
if (stream_factory_ && event == HANDSHAKE_CONFIRMED &&
« no previous file with comments | « net/quic/quic_chromium_client_session.h ('k') | net/quic/quic_client_session_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698