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

Brian Burkhalter brian.burkhalter at oracle.com
Mon Oct 7 16:00:53 PDT 2013


Resuming this discussion …

Thanks for the previous comments. My feeling at this point is to do one of two things:

A) defer to something after JDK 8, or
B) on EAI_AGAIN do not retry but set the cause of the UAE to "new SomeException(gai_strerror(error))" where SomeException could be for example Exception, RuntimeException, or IOException.

Comments?

Thanks,

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/net-dev/attachments/20131007/af583203/attachment.html 


More information about the net-dev mailing list