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

Unified Diff: ios/chrome/browser/ios_chrome_io_thread.mm

Issue 1973403002: QUIC - Add back to code to experiment with delay_tcp_race. By default, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « ios/chrome/browser/ios_chrome_io_thread.h ('k') | net/http/http_network_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ios_chrome_io_thread.mm
diff --git a/ios/chrome/browser/ios_chrome_io_thread.mm b/ios/chrome/browser/ios_chrome_io_thread.mm
index f998fd68b371e0b8f558cc17b01f41e75a7c119b..fa32840b393a0f0b2da18375967c8ffc203884c0 100644
--- a/ios/chrome/browser/ios_chrome_io_thread.mm
+++ b/ios/chrome/browser/ios_chrome_io_thread.mm
@@ -663,6 +663,7 @@ void IOSChromeIOThread::InitializeNetworkSessionParamsFromGlobals(
&params->quic_packet_loss_threshold);
globals.quic_socket_receive_buffer_size.CopyToIfSet(
&params->quic_socket_receive_buffer_size);
+ globals.quic_delay_tcp_race.CopyToIfSet(&params->quic_delay_tcp_race);
params->enable_quic_port_selection = false;
globals.quic_max_packet_length.CopyToIfSet(&params->quic_max_packet_length);
globals.quic_user_agent_id.CopyToIfSet(&params->quic_user_agent_id);
@@ -768,6 +769,7 @@ void IOSChromeIOThread::ConfigureQuicGlobals(
if (receive_buffer_size != 0) {
globals->quic_socket_receive_buffer_size.set(receive_buffer_size);
}
+ globals->quic_delay_tcp_race.set(ShouldQuicDelayTcpRace(quic_trial_params));
float load_server_info_timeout_srtt_multiplier =
GetQuicLoadServerInfoTimeoutSrttMultiplier(quic_trial_params);
if (load_server_info_timeout_srtt_multiplier != 0) {
@@ -930,6 +932,12 @@ int IOSChromeIOThread::GetQuicSocketReceiveBufferSize(
return 0;
}
+bool IOSChromeIOThread::ShouldQuicDelayTcpRace(
+ const VariationParameters& quic_trial_params) {
+ return base::LowerCaseEqualsASCII(
+ GetVariationParam(quic_trial_params, "delay_tcp_race"), "true");
+}
+
bool IOSChromeIOThread::ShouldQuicCloseSessionsOnIpChange(
const VariationParameters& quic_trial_params) {
return base::LowerCaseEqualsASCII(
« no previous file with comments | « ios/chrome/browser/ios_chrome_io_thread.h ('k') | net/http/http_network_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698