-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Allowed connect to redis-master with ssl. #2024
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
Conversation
@@ -35,6 +35,11 @@ | |||
this(host, port, connectionTimeout, soTimeout, password, database, clientName, | |||
false, null, null, null); | |||
} | |||
JedisFactory(final String host, final int port, final int connectionTimeout, | |||
final int soTimeout, final String password, final int database, final String clientName, final boolean isRedisSslEnabled) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this constructor? Isn't following constructor enough?
I'm asking this because JedisFactory is kept to have fewest constructors.
public class JedisSentinelPool extends JedisPoolAbstract { | ||
|
||
protected GenericObjectPoolConfig poolConfig; | ||
|
||
protected int connectionTimeout = Protocol.DEFAULT_TIMEOUT; | ||
protected int soTimeout = Protocol.DEFAULT_TIMEOUT; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An empty line would make code more readable.
I think we should have a test for this use case |
When I use redis-server with sentinel I can not use safe connect to redis-server with ssl because sentinel Pool in default create not safe connection.