JDK 8 RFR 8010371: getaddrinfo can fail with EAI_SYSTEM/EAGAIN, causes UnknownHostException to be thrown
Alan Bateman
Alan.Bateman at oracle.com
Thu Oct 3 04:48:56 UTC 2013
On 02/10/2013 12:40, Brian Burkhalter wrote:
> :
>
> 1) If the error is EAI_AGAIN / EIA_SYSTEM+EAGAIN / WSATRY_AGAIN then
> do one immediate native retry.
> 2) If the retry fails with the same error, then throw a UHE with a
> specific message or cause.
>
It's very possible the retry will fail the same way but should be
harmless (modulo the delay if is a timeout).
Having the UHE be thrown with the message from gai_strerror would be
must more useful. The reason I suggesting use a cause is because UHE has
always been thrown with the host name as the detail message (and very
possible that there are dependencies somewhere on this).
-Alan.
More information about the core-libs-dev
mailing list