connectionTimeout Significance for JedisSentinelPool() #2620
-
If i want to set infinite timeout for the connectionTimout, should i set the value to 0? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
true in latest code, infiniteSoTimeout default value is 0. |
Beta Was this translation helpful? Give feedback.
-
connectionTimout is passed directly to Socket constructor. There isn't any check about it in Jedis. So support of setting 0 as is completely dependent on the implementation of Java Socket. |
Beta Was this translation helpful? Give feedback.
true
in latest code, infiniteSoTimeout default value is 0.