What is command loop timeout? #2608
-
In this readme section https://github.com/phpredis/phpredis/blob/develop/cluster.md#timeouts
Does it mean that there's some internally defined limit for operation as a whole. E.g. let's say my defined read_timeout is 100ms. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In You can think of it like this: $limit = time() + $redis->timeout + $redis->read_timeout;
do {
// Attempt to send the command, process any redirections, etc...
} while (time() < $limit); |
Beta Was this translation helpful? Give feedback.
In
PHPRedis
>=6.1.0
the total timeout for issuing a cluster command and getting a response will betimeout + read_timeout
. Before6.1.0
it was justtimeout
.You can think of it like this: