[Bug 239890] java/openjdk11: openjdk 11.0.4+11.2 JDBC connections fail with IPv6 addresses

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 07 Oct 2024 16:57:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239890

--- Comment #16 from antonfb@hesiod.org ---
Greg Lewis removed the V6ONLY clearing back in 2019.
IMO this was a bad idea.
In his comment in this PR he says you can't do both ipv4 and ipv6.
If you force it things break without being clear how they break.
IPv6 and IPv4 support is important.
I would like to know more information about this and for Greg to explicitly
mark these PR's as will not do or whatever that should be so that people don't
waste time to figure out how to make this work since the breakage seems to be
intended.
I would be happier if this code had the V6ONLY stuff restored and the IPv4
preferred stack stuff kept.
Seems to me that someone has to investigate and choose to configure their jdk
to use the duel stack environment and make that clear.
So that people can choose to run things even if there may be problems.
Make the problems clear and let people choose what to do.
IMO the V6ONLY stuff should be explicitly configurable in some way. Like if
neither v4 or v6 is preferred clear V6ONLY, if v6 is preferred but v4 is not
then set V6ONLY, and if v4 is set the issue is moot because v6 sockets will not
be created.
Let people run a configuration which works for them, even if it is discouraged.

-- 
You are receiving this mail because:
You are the assignee for the bug.