problem when allocating port with openjdk6
Kurt Miller
kurt at intricatesoftware.com
Fri Dec 10 03:51:33 PST 2010
On 12/9/10 5:57 PM, Christos Zoulas wrote:
> On Dec 9, 2:09pm, kurt at intricatesoftware.com (Kurt Miller) wrote:
> -- Subject: Re: problem when allocating port with openjdk6
>
> | On 12/06/10 11:35, Christos Zoulas wrote:
> |> On Dec 6, 8:26am, glewis at eyesbeyond.com (Greg Lewis) wrote:
> |> -- Subject: Re: problem when allocating port with openjdk6
> |>
> |> | Try adding '-Djava.net.preferIPv4Stack=true' to the args that are passed
> |> | to the JVM on start up.
> |>
> |> Yes, java seems to prefer to use IPv6 mapped addresses for IPv4. But this
> |> does not explain why:
> |>
> |> sysctl -w net.inet6.ip6.v6only=0
> |>
> |> does not work.
> |>
> |> Not that I am suggesting to change the sysctl, because of the security
> |> implications. On the other hand, what's the longer term plan for this?
> |> Should we default the preferIPv4Stack to true for the BSD builds?
> |
> | Hi Christos,
> |
> | On OpenBSD, I disable IPv6 by default in the build using
> | DONT_ENABLE_IPV6="YES". I recommend that for OSs where
> | IPv6 mapped addresses is disabled by default.
> |
> | The long term plan would be to implement a two socket solution similar
> | to how the windows networking support is implemented in the JDK.
>
> Thanks Kurt. I think that the dual socket solution will require buy-in from
> the trunk java developers. Have we discussed it with them?
Hi Christos,
I haven't since I currently don't have the time to move the idea forward.
Although, I think it is a reasonably acceptable solution considering it
is the same approach that was used for Windows.
Regards,
-Kurt
More information about the bsd-port-dev
mailing list