]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use connect_timeout value for execution margin
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 22 Jan 2016 11:19:17 +0000 (12:19 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 22 Jan 2016 11:19:17 +0000 (12:19 +0100)
plugins/OpportunisticQM/lib/opportunisticqueuemanager.php

index c10873e99567f91ad8448aec397d95c382afe5c9..c0d9125f10ff2868b12e65c2aee659d7255cf22a 100644 (file)
@@ -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();