diff options
author | shadi@chromium.org <shadi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-16 22:19:40 +0000 |
---|---|---|
committer | shadi@chromium.org <shadi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-16 22:19:40 +0000 |
commit | e1ec27e5d19b7a16a7e4bb9d090b2ebf7633a38b (patch) | |
tree | fcb524823dfef9714f4adacc9dfca4e78931062c /media | |
parent | 1b2bc9f0787af813be569194cfdc4e2a1e972c03 (diff) | |
download | chromium_src-e1ec27e5d19b7a16a7e4bb9d090b2ebf7633a38b.zip chromium_src-e1ec27e5d19b7a16a7e4bb9d090b2ebf7633a38b.tar.gz chromium_src-e1ec27e5d19b7a16a7e4bb9d090b2ebf7633a38b.tar.bz2 |
Add file name and URL params as key for CNS ports.
BUG=
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10389179
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137539 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rwxr-xr-x | media/tools/constrained_network_server/cns.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/media/tools/constrained_network_server/cns.py b/media/tools/constrained_network_server/cns.py index c87f20a..cf2257f 100755 --- a/media/tools/constrained_network_server/cns.py +++ b/media/tools/constrained_network_server/cns.py @@ -190,8 +190,6 @@ class ConstrainedNetworkServer(object): new_port: whether to use a new port for this request or not. no_cache: Set reponse's cache-control to no-cache. """ - cherrypy.log('Got request string: %s' % cherrypy.request.request_line) - if no_cache: response = cherrypy.response response.headers['Pragma'] = 'no-cache' @@ -232,7 +230,7 @@ class ConstrainedNetworkServer(object): constrained_port = self._port_allocator.Get( cherrypy.request.remote.ip, server_port=self._options.port, interface=self._options.interface, bandwidth=bandwidth, latency=latency, - loss=loss, new_port=new_port) + loss=loss, new_port=new_port, file=f, **kwargs) end_time = time.time() if not constrained_port: @@ -326,6 +324,7 @@ def ParseArgs(): # Required so that cherrypy logs do not get propagated to root logger causing # the logs to be printed twice. cherrypy.log.error_log.propagate = False + cherrypy.log.access_log.propagate = False _SetLogger(options.verbose) |