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

Timeouts for RedisClientPool #220

Open
Kravcij opened this issue Jun 27, 2019 · 0 comments
Open

Timeouts for RedisClientPool #220

Kravcij opened this issue Jun 27, 2019 · 0 comments

Comments

@Kravcij
Copy link

Kravcij commented Jun 27, 2019

One can set connect timeout for a simple RedisClient. It's not the case with RedisClientPool. The latter extends RedisClientPoolLike which creates RedisClientActors with following way:
def makeRedisClientActor(server: RedisServer, active: Ref[Boolean]): ActorRef = { system.actorOf(RedisClientActor.props(new InetSocketAddress(server.host, server.port), getConnectOperations(server), onConnectStatus(server, active), redisDispatcher.name) .withDispatcher(redisDispatcher.name), name + '-' + Redis.tempName() ) }

So, there is no way to provide a connection timeout in the RedisClientActor.props method.

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

No branches or pull requests

1 participant