Code Review 6947677: InetAddress.isReachable() throws "java.net.SocketException:Invalid argument" on Linux if run as root
Chris Hegarty
chris.hegarty at oracle.com
Thu Oct 21 05:57:22 PDT 2010
Hi Michael,
On some Linuxes, when bound to the loopback interface, sendto will fail
and errno will be set to EINVAL. When that happens, don't throw an
exception, just return false. We already do this in the case where we
cannot create raw sockets, i.e. when not running as root.
http://cr.openjdk.java.net/~chegar/6947677/webrev.00/webrev/
Thanks,
-Chris.
More information about the net-dev
mailing list