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. |
Answered by
michael-grunder
Jan 9, 2025
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); |
0 replies
Answer selected by
gskema
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In
PHPRedis>=6.1.0the total timeout for issuing a cluster command and getting a response will betimeout + read_timeout. Before6.1.0it was justtimeout.You can think of it like this: