JDK 8 RFR 8010371: getaddrinfo can fail with EAI_SYSTEM/EAGAIN, causes UnknownHostException to be thrown
Alan Bateman
Alan.Bateman at oracle.com
Tue Oct 1 18:50:33 UTC 2013
On 01/10/2013 11:31, Brian Burkhalter wrote:
> Hello net-dev members,
>
> Please review this proposed fix at your convenience.
>
> Summary
> When looking up a host and an EAGAIN error is encountered, throw an instance of the new HostLookupException subclass of UnknownHostException.
>
> Issue
> https://bugs.openjdk.java.net/browse/JDK-8010371
>
> Webrev
> http://cr.openjdk.java.net/~bpb/8010371
>
>
So is getaddrinfo returning EAGAIN or is it failing with EAI_SYSTEM and
errno set to EAGAIN? I also wonder if the EAGAIN means the underlying
syscall has been interrupted, in which case the normal thing to do is to
retry.
-Alan
More information about the core-libs-dev
mailing list