From 1121b38eb185bf606099d15ec423d0906a879d65 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 22 Jan 2016 12:19:17 +0100 Subject: [PATCH] use connect_timeout value for execution margin --- plugins/OpportunisticQM/lib/opportunisticqueuemanager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/OpportunisticQM/lib/opportunisticqueuemanager.php b/plugins/OpportunisticQM/lib/opportunisticqueuemanager.php index eeabfa531b..7100ab7296 100644 --- a/plugins/OpportunisticQM/lib/opportunisticqueuemanager.php +++ b/plugins/OpportunisticQM/lib/opportunisticqueuemanager.php @@ -43,7 +43,7 @@ class OpportunisticQueueManager extends DBQueueManager } if ($this->max_execution_margin === null) { - $this->max_execution_margin = 10; // should be calculated from our default timeouts for http requests etc. + $this->max_execution_margin = common_config('http', 'connect_timeout') + 1; // think PHP's max exec time, minus this value to have time for timeouts etc. } return parent::__construct(); -- 2.39.5