mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 10:28:12 +01:00
Fix for jedis pool deadlock
1) Remove nested pool checkouts 2) Add a max wait so it won't block forever on deadlock
This commit is contained in:
@@ -48,6 +48,7 @@ public class RedisClientFactory implements RedisPubSubConnectionFactory {
|
||||
{
|
||||
JedisPoolConfig poolConfig = new JedisPoolConfig();
|
||||
poolConfig.setTestOnBorrow(true);
|
||||
poolConfig.setMaxWaitMillis(10000);
|
||||
|
||||
URI redisURI = new URI(url);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user