JDK 8 RFR 8010371: getaddrinfo can fail with EAI_SYSTEM/EAGAIN, causes UnknownHostException to be thrown
Chris Hegarty
chris.hegarty at oracle.com
Wed Oct 2 19:53:14 UTC 2013
On 10/02/2013 08:40 PM, Brian Burkhalter wrote:
> ....
> So, how about this approach:
>
> 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.
Sounds good to me.
> Questions:
>
> A) Would it be better to do the retry in the Java layer, perhaps with a very short wait?
native, without any wait, should be sufficient.
> B) Should the message or cause in #2 be explicitly document in the javadoc?
I don't think it is necessary for this to be documented. It is more
informational.
-Chris.
More information about the core-libs-dev
mailing list