New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: resolving hostname when retry on connection timeout #1833
Comments
Yes, To retry on other errors too, you can use the new argument |
@barshaul thanks for your replay. |
If you don't pass a Retry instance using the client's 'retry' argument, it will create a default one for you. The default Retry object has 1 retries and NoBackoff() strategy. Here's more info about the Retry / Backoff strategies:
Example how to create a client with retry object:
|
@barshaul Thank you! |
@barshaul I tried the solution you suggested and it's not working when trying to connect to the server. any suggestion? |
I wonder if Redis client resolve again the hostname if connection timeout occurred while setting
retry_on_timeout=True
.I'm asking since sometime the mapping between hostname to ip can be invalid since the DNS changed the mapping.
The text was updated successfully, but these errors were encountered: