-
Notifications
You must be signed in to change notification settings - Fork 40
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
Support for IPv6 #65
Support for IPv6 #65
Conversation
Codecov Report
@@ Coverage Diff @@
## master #65 +/- ##
==========================================
+ Coverage 94.9% 94.96% +0.05%
==========================================
Files 143 143
Lines 8717 8810 +93
==========================================
+ Hits 8273 8366 +93
Misses 444 444
Continue to review full report at Codecov.
|
@jhecking This remains to be tested in a real-world setup. Would you be able to test it quickly? |
Looks good to me. I finally got IPv6 working on my Vagrant dev box today and was able to run some tests for IPv6-only as well as mixed setups. I noticed only one minor issue with one of the existing specs while testing: The Client#connect spec checks whether the cluster size is >= 1 when using peers protocol as well as the older services protocol. In an IPv6-only setup I found that the older services protocol does not advertize IPv6 addresses. So when the peers protocol is disabled and only one seed node is given for a 2+-node cluster, only that seed node is discovered, but not the remaining nodes. The specs do not catch this. However, we can ignore this, since in a real-world setup, any cluster that supports IPv6 will use the peers protocol for cluster discovery. |
@wallin, the PR is still tagged as "WIP" - is there any further work you plan to do on this? |
nope. sorry about that. just forgot to change it.
Perhaps we could raise an error/warning if IPv6 is used when the peers protocol isn't supported? Happy to take a stab at it in a separate PR |
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.
👍
How would you know? If one of the seed addresses is IPv6? I think we can just ignore this use case since it only happens during testing. All servers that support IPv6 also support the peers protocol. |
Right, that was the idea. But ok let’s ignore this. |
Parse and connect to IPv6 hosts correctly