use connect_timeout value for execution margin

This commit is contained in:
Mikael Nordfeldth 2016-01-22 12:19:17 +01:00
parent 89dd44bf3e
commit 1121b38eb1

View File

@ -43,7 +43,7 @@ class OpportunisticQueueManager extends DBQueueManager
} }
if ($this->max_execution_margin === null) { 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(); return parent::__construct();