Skip to content

What is command loop timeout? #2608

Answered by michael-grunder
gskema asked this question in Q&A
Discussion options

You must be logged in to vote

In PHPRedis >= 6.1.0 the total timeout for issuing a cluster command and getting a response will be timeout + read_timeout. Before 6.1.0 it was just timeout.

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);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gskema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants