JDK 8 RFR 8010371: getaddrinfo can fail with EAI_SYSTEM/EAGAIN, causes UnknownHostException to be thrown

Brian Burkhalter brian.burkhalter at oracle.com
Tue Oct 1 19:46:35 UTC 2013


On Oct 1, 2013, at 11:59 AM, Brian Burkhalter wrote:

> It seems a bit unclear to me and to depend on which system one is on. There is also the possibility apparently of it returning EAI_AGAIN. It might be best to test both the return value and if that is EAI_SYSTEM to test errno.

I updated the webrev

http://cr.openjdk.java.net/~bpb/8010371/

with changes in the test of the return value of getaddrinfo for Unix Inet 4 and 6 and Windows Inet 6. The usual testing is in progress.

Brian


More information about the core-libs-dev mailing list