Skip to content

Commit 6fb2fe4

Browse files
committed
Default to 0 timeout, timeouts actually break gearman
gearman/gearmand#301
1 parent c0768a3 commit 6fb2fe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GearmanPeclManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function start_lib_worker($worker_list, $timeouts = array()) {
4646
}
4747

4848
foreach($worker_list as $w){
49-
$timeout = (isset($timeouts[$w]) ? $timeouts[$w] : 120);
49+
$timeout = (isset($timeouts[$w]) ? $timeouts[$w] : 0);
5050
$this->log("Adding job $w ; timeout: " . $timeout, GearmanManager::LOG_LEVEL_WORKER_INFO);
5151
$thisWorker->addFunction($w, array($this, "do_job"), $this, $timeout);
5252
}

0 commit comments

Comments
 (0)