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

Unified Diff: chrome/browser/io_thread.cc

Issue 1977303002: Revert of QUIC - enable "delay_tcp_race" parameter by default. This feature showed (patchset #3 id:… (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 | « chrome/browser/io_thread.h ('k') | chrome/browser/io_thread_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 78ce6c8a35a8bc9a7c1f2b0a923a5380b343e200..5d6949b978786da0d78f4bfb6481901a5a58e75a 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -1199,6 +1199,7 @@ void IOThread::NetworkSessionConfigurator::ConfigureQuicParams(
if (receive_buffer_size != 0) {
params->quic_socket_receive_buffer_size = receive_buffer_size;
}
+ params->quic_delay_tcp_race = ShouldQuicDelayTcpRace(quic_trial_params);
float load_server_info_timeout_srtt_multiplier =
GetQuicLoadServerInfoTimeoutSrttMultiplier(quic_trial_params);
if (load_server_info_timeout_srtt_multiplier != 0) {
@@ -1448,6 +1449,13 @@ int IOThread::NetworkSessionConfigurator::GetQuicSocketReceiveBufferSize(
}
// static
+bool IOThread::NetworkSessionConfigurator::ShouldQuicDelayTcpRace(
+ const VariationParameters& quic_trial_params) {
+ return base::LowerCaseEqualsASCII(
+ GetVariationParam(quic_trial_params, "delay_tcp_race"), "true");
+}
+
+// static
bool IOThread::NetworkSessionConfigurator::ShouldQuicCloseSessionsOnIpChange(
const VariationParameters& quic_trial_params) {
return base::LowerCaseEqualsASCII(
« no previous file with comments | « chrome/browser/io_thread.h ('k') | chrome/browser/io_thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698