From 2e815c55df7be1b319dc6280f7df3e0ecf23f09b Mon Sep 17 00:00:00 2001 From: "shadi@chromium.org" Date: Sat, 5 May 2012 04:41:06 +0000 Subject: Increase socket_timeout values for CNS requests. This timeout caused connections to drop suddenly. BUG=126026 TEST=manual test. Review URL: http://codereview.chromium.org/10353004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135529 0039d316-1c4b-4281-b951-d872f2087c98 --- media/tools/constrained_network_server/cns.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'media') diff --git a/media/tools/constrained_network_server/cns.py b/media/tools/constrained_network_server/cns.py index dd8088f..c206c9c 100755 --- a/media/tools/constrained_network_server/cns.py +++ b/media/tools/constrained_network_server/cns.py @@ -201,9 +201,8 @@ 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 for %s, bandwidth=%s, latency=%s, loss=%s, ' - 'new_port=%s, no_cache=%s, kwargs=%s' % - (f, bandwidth, latency, loss, new_port, no_cache, kwargs)) + cherrypy.log('Got request string: %s' % cherrypy.request.request_line) + if no_cache: response = cherrypy.response response.headers['Pragma'] = 'no-cache' @@ -358,8 +357,9 @@ def Main(): cherrypy.log(e.msg) return - cherrypy.config.update( - {'server.socket_host': '::', 'server.socket_port': options.port}) + cherrypy.config.update({'server.socket_host': '::', + 'server.socket_port': options.port, + 'server.socket_timeout': 1000}) if options.threads: cherrypy.config.update({'server.thread_pool': options.threads}) -- cgit v1.1