The virtual thread is not parked in InetAddress isReachable

Alan Bateman alan.bateman at oracle.com
Tue Apr 22 12:59:14 UTC 2025


On 22/04/2025 13:18, Anton Rameykov wrote:
> :
>                     InetAddress address = 
> InetAddress.getByName("8.8.8.8");
>                     boolean reachable = address.isReachable(100);
cc'ing net-dev as that is where the networking code is maintained. Right 
now, the the IGMP and TCP implementations of isReachable are written in 
native code. These are good candidates to re-implement in Java and FFM. 
In particular, the TCP implementation (use when not root or permission 
to create raw sockets) could be migrated and should just park gracefully 
when waiting to see if a connection can be established.

-Alan


More information about the net-dev mailing list