RFR: 8373704: Improve "SocketException: Protocol family unavailable" message [v2]

Alan Bateman alanb at openjdk.org
Thu Jan 1 15:34:01 UTC 2026


On Thu, 18 Dec 2025 16:39:06 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

>> In [JDK-8373676](https://bugs.openjdk.org/browse/JDK-8373676)
>> we noticed a "SocketException: Protocol family unavailable" because of missing ipv6 support. We could improve this exception and tell that the ipv6 support is not available or something related.
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Adjust the message as suggested by jaikiran

> we noticed a "SocketException: Protocol family unavailable" because of missing ipv6 support. We could improve this exception and tell that the ipv6 support is not available or something related.

Would it be possible to say which method or test failure lead to this? I'm wondering how we end up calling it with an IPv6 address when not supported.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/28851#issuecomment-3703828941


More information about the net-dev mailing list