Sitelet https://github.com/phpredis/phpredis/issues/795
Skip to content

Should timeout be read_timeout? #795

Description

@jesseforrest

We are trying to understand the difference between the timeout and read_timeout. We noticed that c->waitms is set to timeout instead of read_timeout on this line:

/* Set up our waitms based on timeout */

We recently reduced timeout from 5 seconds to 1 second. Now we are seeing a significant number of "Timed out attempting to find data in the correct node!" errors and would have assumed it was tied to read_timeout, but it's actually tied to timeout. Is timeout the correct value to be set for c->waitms?

Our current production settings have:

timeout = 1 sec
read_timeout = 6 sec

Any advice on the appropriate next steps would be appreciated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions