Skip to content
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

Fix colloc and IPv6 #3161

Merged
merged 2 commits into from
Nov 18, 2024
Merged

Conversation

bernardnormier
Copy link
Member

This PR fixes #3154 by:

  • changing the test scripts to use ::1 for colloc ipv6
  • normalizing IPv6 host in Java (in IPEndpointI)

For Java, I picked the "normalization" provided by https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/net/Inet6Address.html#getHostAddress(), which returns a "long form" of the IPv6 address. We call getHostAddress directly a number of times and this was the simplest normalization.

This is not a complete fix for #3154. We should also normalize IPv6 hosts in C++, C# and JS. In C++ and C#, system APIs appear to return the short form, which is why "::1" works with colloc. We should run at least one test with colloc + ipv6 (not in this PR).

@bernardnormier bernardnormier merged commit e5dd570 into zeroc-ice:main Nov 18, 2024
19 checks passed
@bernardnormier bernardnormier deleted the fix-colloc branch December 9, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot run collocated tests with IPv6
3 participants