Commit 8d72993e authored by tonyg@chromium.org's avatar tonyg@chromium.org

[Telemetry] Set same settings on memory cache http server that WPR sets.

It looks like the error that the windows dom_perf tests are hitting could be
caused by improperly closing the socket, which this might fix.

error: [Errno 10053] An established connection was aborted by the software in your host machine

BUG=335624

Review URL: https://codereview.chromium.org/259623003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266074 0039d316-1c4b-4281-b951-d872f2087c98
parent d4ae424e
......@@ -23,6 +23,9 @@ ResourceAndRange = namedtuple('ResourceAndRange', ['resource', 'byte_range'])
class MemoryCacheHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
protocol_version = 'HTTP/1.1' # override BaseHTTPServer setting
wbufsize = -1 # override StreamRequestHandler (a base class) setting
def do_GET(self):
"""Serve a GET request."""
resource_range = self.SendHead()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment