Skip to content
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

How is the socket_timeout supposed to be set when using UnixDomainSocketConnection? #2887

Closed
abhi-jha opened this issue Aug 10, 2023 · 1 comment
Labels

Comments

@abhi-jha
Copy link

Thanks for wanting to report an issue you've found in redis-py. Please delete this text and fill in the template below.
It is of course not always possible to reduce your code to a small test case, but it's highly appreciated to have as much data as possible. Thank you!

Version: 4.5.3

Platform: MacOS, Ventura 13.5, Python 3.11

Description: I am trynig to use UDS to connect with a redis server running locally and I am getting an error regarding self.socket_timeout not being set. Now when I look at the API it is as follows

rdb = redis.ConnectionPool(connection_class=redis.UnixDomainSocketConnection, path="/path/redis/redis.sock")
r = redis.Redis(connection_pool=rdb)
r.get("users:1234")

Now I don't think ConncectionPool is initialising socket_timeout anywhere.

@petyaslavova
Copy link
Collaborator

Issue is fixed with #3290

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants