I get a connection exception (given at the end) even though I did the following:
While creating an instance of Jedis, I set the timeout field to 1 hr (60*60*1000). I also tried it with 0, that doesn't work either.
When I checked the log after 7 mins, I noticed it, although I think the exception would have occurred much earlier (at 300 secs). Why do I keep getting it? Any idea why?
Exception in thread "main" redis.clients.jedis.exceptions.JedisConnectionException: It seems like server has closed the connection.
at redis.clients.util.RedisInputStream.readLine(RedisInputStream.java:90)
at redis.clients.jedis.Protocol.processMultiBulkReply(Protocol.java:111)
at redis.clients.jedis.Protocol.process(Protocol.java:64)
at redis.clients.jedis.Protocol.read(Protocol.java:127)
at redis.clients.jedis.Connection.getBinaryMultiBulkReply(Connection.java:199)
at redis.clients.jedis.BinaryJedis.smembers(BinaryJedis.java:1187)