Skip to content

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

@abhi-jha

Description

@abhi-jha

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions