EHOSTUNREACH should not be considered as an exception when send on a loopback network interface.

Charles Lee littlee at linux.vnet.ibm.com
Thu Sep 1 21:50:21 PDT 2011


Hi guys,

In some linuxes, when you bind on a loopback network interface, sendto 
will be fail and errono will be set to EHOSTUNREACH.
In this situation, EHOSTUNREACH maybe need treat as INVAL: return false, 
not throw an exception.

Patch is attached.

Does anyone interested in this issue?


-- 
Yours Charles

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.v1
Url: http://mail.openjdk.java.net/pipermail/net-dev/attachments/20110902/78a785a5/patch.v1 


More information about the net-dev mailing list