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

Unified Diff: net/quic/quic_stream_factory.cc

Issue 1775283002: [Domain Reliabiliy: net stack] Plumb received go away from server due to connection migration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« net/quic/quic_chromium_client_session.cc ('K') | « net/quic/quic_stream_factory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_stream_factory.cc
diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc
index add54d72466e39cea2581d90c022a9c06a286fce..30f0f2322a61d41e9c19fa7f658e865b38af0526 100644
--- a/net/quic/quic_stream_factory.cc
+++ b/net/quic/quic_stream_factory.cc
@@ -618,6 +618,7 @@ QuicStreamFactory::QuicStreamFactory(
load_server_info_timeout_srtt_multiplier_(
load_server_info_timeout_srtt_multiplier),
enable_connection_racing_(enable_connection_racing),
+ goaway_received_for_connection_mirgation_(false),
enable_non_blocking_io_(enable_non_blocking_io),
disable_disk_cache_(disable_disk_cache),
prefer_aes_(prefer_aes),
@@ -1071,6 +1072,10 @@ void QuicStreamFactory::OnSessionGoingAway(QuicChromiumClientSession* session) {
session_aliases_.erase(session);
}
+void QuicStreamFactory::OnSessionGoingAwayForConnectionMigration() {
+ goaway_received_for_connection_mirgation_ = true;
+}
+
void QuicStreamFactory::MaybeDisableQuic(QuicChromiumClientSession* session) {
DCHECK(session);
uint16_t port = session->server_id().port();
@@ -1692,4 +1697,9 @@ void QuicStreamFactory::ProcessGoingAwaySession(
alternative_service);
}
+void QuicStreamFactory::PopulateNetErrorDetails(NetErrorDetails* details) {
+ details->goaway_received_for_connection_mirgation =
+ goaway_received_for_connection_mirgation_;
Ryan Hamilton 2016/03/09 19:53:03 I don't understand how this works. The HttpNetwork
+}
+
} // namespace net
« net/quic/quic_chromium_client_session.cc ('K') | « net/quic/quic_stream_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698