From: Mikael Nordfeldth Date: Fri, 22 Jan 2016 11:19:17 +0000 (+0100) Subject: use connect_timeout value for execution margin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=81f9a59f2515215ee2d0cbcfabf32894d2a4ddad;p=quix0rs-gnu-social.git use connect_timeout value for execution margin --- diff --git a/plugins/OpportunisticQM/lib/opportunisticqueuemanager.php b/plugins/OpportunisticQM/lib/opportunisticqueuemanager.php index c10873e995..c0d9125f10 100644 --- a/plugins/OpportunisticQM/lib/opportunisticqueuemanager.php +++ b/plugins/OpportunisticQM/lib/opportunisticqueuemanager.php @@ -45,7 +45,7 @@ class OpportunisticQueueManager extends DBQueueManager } if ($this->max_execution_margin === null) { - $this->max_execution_margin = 10; // think PHP's max exec time, minus this value to have time for timeouts 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();