summaryrefslogtreecommitdiffstats
path: root/tools/telemetry
diff options
context:
space:
mode:
authortonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-27 18:43:52 +0000
committertonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-27 18:43:52 +0000
commitfa349a967f9f1149dc9aae1bab168f7be7436320 (patch)
treeff5d6441343ccf668abdb0d2d667ad7f3610ae20 /tools/telemetry
parent23f156e3abd512db2564a7e59ad099eef6de0a1b (diff)
downloadchromium_src-fa349a967f9f1149dc9aae1bab168f7be7436320.zip
chromium_src-fa349a967f9f1149dc9aae1bab168f7be7436320.tar.gz
chromium_src-fa349a967f9f1149dc9aae1bab168f7be7436320.tar.bz2
[Telemetry] Use HTTP/1.1 for memory cache http server.
The BaseHTTPServer will close connections when using HTTP/1.0. This causes us to have too many zombie sockets occupied in TIME_WAIT state. So many that we run out of ephemeral ports on Windows XP. With HTTP/1.1, connections are able to be reused and thus we open far fewer sockets. My hope is that this will fix the flaky intl1 failures on the XP bots. BUG=223543 TEST=intl1 page cycler on XP and linux NOTRY=True Review URL: https://chromiumcodereview.appspot.com/13119016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190988 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/telemetry')
-rw-r--r--tools/telemetry/telemetry/core/memory_cache_http_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/telemetry/telemetry/core/memory_cache_http_server.py b/tools/telemetry/telemetry/core/memory_cache_http_server.py
index c648f12..92bedce 100644
--- a/tools/telemetry/telemetry/core/memory_cache_http_server.py
+++ b/tools/telemetry/telemetry/core/memory_cache_http_server.py
@@ -88,7 +88,7 @@ def Main():
port = int(sys.argv[1])
directories = sys.argv[2:]
server_address = ('127.0.0.1', port)
- MemoryCacheHTTPRequestHandler.protocol_version = 'HTTP/1.0'
+ MemoryCacheHTTPRequestHandler.protocol_version = 'HTTP/1.1'
httpd = MemoryCacheHTTPServer(server_address, MemoryCacheHTTPRequestHandler,
directories)
httpd.serve_forever()