##// END OF EJS Templates
fix(tests): fixed potential freeze on vcs_operations tests
super-admin -
r5468:bafb4fbd default
parent child Browse files
Show More
@@ -58,7 +58,7 b' def vcsserver_factory(tmpdir_factory):'
58 """
58 """
59
59
60 def factory(request, overrides=(), vcsserver_port=None,
60 def factory(request, overrides=(), vcsserver_port=None,
61 log_file=None, workers='2'):
61 log_file=None, workers='3'):
62
62
63 if vcsserver_port is None:
63 if vcsserver_port is None:
64 vcsserver_port = get_available_port()
64 vcsserver_port = get_available_port()
@@ -143,13 +143,14 b' class RcVCSServer(ServerBase):'
143 log_file_name = 'rc-vcsserver.log'
143 log_file_name = 'rc-vcsserver.log'
144 status_url_tmpl = 'http://{host}:{port}/status'
144 status_url_tmpl = 'http://{host}:{port}/status'
145
145
146 def __init__(self, config_file, log_file=None, workers='2'):
146 def __init__(self, config_file, log_file=None, workers='3'):
147 super(RcVCSServer, self).__init__(config_file, log_file)
147 super(RcVCSServer, self).__init__(config_file, log_file)
148 self._args = [
148 self._args = [
149 'gunicorn',
149 'gunicorn',
150 '--bind', self.bind_addr,
150 '--bind', self.bind_addr,
151 '--worker-class', 'gthread',
151 '--worker-class', 'sync',
152 '--backlog', '16',
152 '--threads', '1',
153 '--backlog', '8',
153 '--timeout', '300',
154 '--timeout', '300',
154 '--workers', workers,
155 '--workers', workers,
155 '--paste', self.config_file]
156 '--paste', self.config_file]
@@ -180,13 +181,14 b' class RcWebServer(ServerBase):'
180 log_file_name = 'rc-web.log'
181 log_file_name = 'rc-web.log'
181 status_url_tmpl = 'http://{host}:{port}/_admin/ops/ping'
182 status_url_tmpl = 'http://{host}:{port}/_admin/ops/ping'
182
183
183 def __init__(self, config_file, log_file=None, workers='1'):
184 def __init__(self, config_file, log_file=None, workers='2'):
184 super(RcWebServer, self).__init__(config_file, log_file)
185 super(RcWebServer, self).__init__(config_file, log_file)
185 self._args = [
186 self._args = [
186 'gunicorn',
187 'gunicorn',
187 '--bind', self.bind_addr,
188 '--bind', self.bind_addr,
188 '--worker-class', 'gthread',
189 '--worker-class', 'gthread',
189 '--backlog', '16',
190 '--threads', '4',
191 '--backlog', '8',
190 '--timeout', '300',
192 '--timeout', '300',
191 '--workers', workers,
193 '--workers', workers,
192 '--paste', self.config_file]
194 '--paste', self.config_file]
General Comments 0
You need to be logged in to leave comments. Login now