在我的应用程序中,我有 4 个 redis channel ,该应用程序在 4 个不同的线程中订阅该 channel ,但从长远来看,每 4 小时我在订阅这些 channel 的所有 4 个线程中都会遇到异常。
java.net.SocketException: Connection time out (Read failed)
我无法找到这次超时的确切原因,如果你们的任何意见都会更有帮助。
最佳答案
您是否忘记将 jedis 连接返回到 JedisPool?
关于java - Jedis Subscribe thread get Connection time out exception 每一个固定的时间间隔,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48636381/