Show More
@@ -90,7 +90,7 b' class ServerBase(object):' | |||||
90 | with open(self.log_file) as f: |
|
90 | with open(self.log_file) as f: | |
91 | return f.read() |
|
91 | return f.read() | |
92 |
|
92 | |||
93 |
def wait_until_ready(self, timeout= |
|
93 | def wait_until_ready(self, timeout=30): | |
94 | host = self._config['host'] |
|
94 | host = self._config['host'] | |
95 | port = self._config['port'] |
|
95 | port = self._config['port'] | |
96 | status_url = self.status_url_tmpl.format(host=host, port=port) |
|
96 | status_url = self.status_url_tmpl.format(host=host, port=port) |
@@ -131,7 +131,10 b' def rc_web_server(' | |||||
131 | vcsserver_factory( |
|
131 | vcsserver_factory( | |
132 | request, vcsserver_port=vcsserver_port, |
|
132 | request, vcsserver_port=vcsserver_port, | |
133 | log_file=vcs_log, |
|
133 | log_file=vcs_log, | |
134 | overrides=({'server:main': {'workers': 2}},)) |
|
134 | overrides=( | |
|
135 | {'server:main': {'workers': 2}}, | |||
|
136 | {'server:main': {'graceful_timeout': 10}}, | |||
|
137 | )) | |||
135 |
|
138 | |||
136 | rc_log = os.path.join(tempfile.gettempdir(), 'rc_op_web.log') |
|
139 | rc_log = os.path.join(tempfile.gettempdir(), 'rc_op_web.log') | |
137 | rc_web_server_config = rc_web_server_config_factory( |
|
140 | rc_web_server_config = rc_web_server_config_factory( |
General Comments 0
You need to be logged in to leave comments.
Login now