We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 125aade commit edc326dCopy full SHA for edc326d
src/ipc/driver/Redis.php
@@ -49,6 +49,7 @@ public function subscribe()
49
50
Coroutine::create(function () {
51
$this->runWithRedis(function (PHPRedis $redis) {
52
+ $redis->setOption(PHPRedis::OPT_READ_TIMEOUT, -1);
53
$redis->subscribe([$this->getPrefix() . $this->workerId], function ($redis, $channel, $message) {
54
$this->manager->triggerEvent('message', unserialize($message));
55
});
0 commit comments