-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Add support for custom socket factories #2151
Conversation
1ae2859
to
d19ffdc
Compare
@mina-asham Please add a test or two. A test for UDS would be a great addition. |
c3c3039
to
98e84c9
Compare
Test is failing because of spop test due to a fix in redis/unstable, see: #2152 |
@mina-asham Don't worry about it. There are a couple of Redis commands that are in back-and-forth changes. |
LGTM! @mina-asham Not necessary, but can give a short explanation of change in |
Ha, the main difference is that the previous code used to:
The new logic is all encapsulated in the factory, so you either get a socket or an exception, so the isConnected method would return false (which I believe is the right behavior), so the cluster failure is that there are no active nodes instead of trying to use a node it thinks is active but it's not |
@gkorland do you have any comments on this one? |
caea260
to
651e55a
Compare
…main Socket) or any other custom address resolution - Related pull requests: redis#2036 and redis#1942 and redis#1132
651e55a
to
753e2f1
Compare
@mina-asham it LGTM, but it's pretty hard to review the changes this way with the force-pushed. Next time please keep the incremental commits. |
Will do, thanks for reviewing! |
Can we merge this one? |
@mina-asham We will merge it, but there is a confusion about which version we'll be adding it in. That's all. |
I think we are missing here a solution for the JedisPool & JedisCluster |
You're right, missed the respective constructors there, will add them and uodate this PR! |
@gkorland I'm going ahead and merging this. |
This can enable UDS (Unix Domain Socket) or any other custom address resolution