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

Unified Diff: components/network_session_configurator/network_session_configurator.cc

Issue 2789093003: Mark QUIC broken when the network blackholes after the handshake (Closed)
Patch Set: jana's comments Created 3 years, 8 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 | « no previous file | components/network_session_configurator/network_session_configurator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/network_session_configurator/network_session_configurator.cc
diff --git a/components/network_session_configurator/network_session_configurator.cc b/components/network_session_configurator/network_session_configurator.cc
index b26ee591873095870a0612c0692770c6f8313152..c53ba0784e6ab0a0272324f1ff448ee0113df5d3 100644
--- a/components/network_session_configurator/network_session_configurator.cc
+++ b/components/network_session_configurator/network_session_configurator.cc
@@ -107,6 +107,14 @@ bool ShouldEnableQuic(base::StringPiece quic_trial_group,
"true");
}
+bool ShouldMarkQuicBrokenWhenNetworkBlackholes(
+ const VariationParameters& quic_trial_params) {
+ return base::LowerCaseEqualsASCII(
+ GetVariationParam(quic_trial_params,
+ "mark_quic_broken_when_network_blackholes"),
+ "true");
+}
+
bool ShouldQuicDisableConnectionPooling(
const VariationParameters& quic_trial_params) {
return base::LowerCaseEqualsASCII(
@@ -325,6 +333,8 @@ void ConfigureQuicParams(base::StringPiece quic_trial_group,
params->enable_quic = ShouldEnableQuic(
quic_trial_group, quic_trial_params, is_quic_force_disabled,
is_quic_force_enabled);
+ params->mark_quic_broken_when_network_blackholes =
+ ShouldMarkQuicBrokenWhenNetworkBlackholes(quic_trial_params);
params->enable_quic_alternative_service_with_different_host =
ShouldQuicEnableAlternativeServicesForDifferentHost(quic_trial_params);
« no previous file with comments | « no previous file | components/network_session_configurator/network_session_configurator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698