summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorrtenneti <rtenneti@chromium.org>2014-10-20 12:49:46 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-20 19:50:06 +0000
commit708a3ef67431831c2a29aa35202fa446011020b4 (patch)
treeeccd0819cad062419459d3e6f87ee0aacf4a35df /net/http
parent38b46138112e7077a41ab8dd4815a22a15ff0527 (diff)
downloadchromium_src-708a3ef67431831c2a29aa35202fa446011020b4.zip
chromium_src-708a3ef67431831c2a29aa35202fa446011020b4.tar.gz
chromium_src-708a3ef67431831c2a29aa35202fa446011020b4.tar.bz2
QUIC - Android - small experiment to flush http_server_properties
changes to disk every 500ms instead of 5secs. We are hoping if QUIC is used as an alternate protocol, we will persist that information to disk quicker. Hopefully, this would improve the QUIC winning the alternate protocol race. R=rch@chromium.org Review URL: https://codereview.chromium.org/667473003 Cr-Commit-Position: refs/heads/master@{#300318}
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_server_properties_manager.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/http/http_server_properties_manager.cc b/net/http/http_server_properties_manager.cc
index 55aa019..08e4f6a 100644
--- a/net/http/http_server_properties_manager.cc
+++ b/net/http/http_server_properties_manager.cc
@@ -27,7 +27,13 @@ const int64 kUpdateCacheDelayMs = 1000;
// Time to wait before starting an update the preferences from the
// http_server_properties_impl_ cache. Scheduling another update during this
// period will reset the timer.
+// TODO(rtenneti): Remove OS_ANDROID ifdef after testing if flushing of
+// AlternateProtocolHosts to disk in 500ms helps with QUIC's 0RTT or not.
+#if defined(OS_ANDROID)
+const int64 kUpdatePrefsDelayMs = 500;
+#else
const int64 kUpdatePrefsDelayMs = 5000;
+#endif
// "version" 0 indicates, http_server_properties doesn't have "version"
// property.