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:58:20 PDT 2011


On 09/02/2011 12:50 PM, Charles Lee wrote:
> 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?
>
>
Sorry, I attached a wrong diff. Here is the right one.

-- 
Yours Charles

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


More information about the net-dev mailing list