From cfba7da06d339391ebc815d345288ba833784efa Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Tue, 14 Aug 2018 13:57:31 +0200 Subject: [PATCH] [IMP] runbot: skip an additional port for chrome In a near future, Odoo will use Chrome Headless instead of phantomjs. Chrome needs a port to listen to and it was decided that it will be http_port + 2. With this commit, we ensure that this port is not used by another build. Closes #30 --- runbot/models/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/build.py b/runbot/models/build.py index 5f28ee71..c1687495 100644 --- a/runbot/models/build.py +++ b/runbot/models/build.py @@ -377,7 +377,7 @@ class runbot_build(models.Model): # find next free port while port in ports: - port += 2 + port += 3 return port def _logger(self, *l):