The return value 'error' should be tested for non-zero before the test at line 134 of Inet6AddressImpl.c is performed:
132 error = getaddrinfo(hostname, NULL, &hints, &res);
133
134 if (WSAGetLastError() == WSATRY_AGAIN) {
132 error = getaddrinfo(hostname, NULL, &hints, &res);
133
134 if (WSAGetLastError() == WSATRY_AGAIN) {
- relates to
-
JDK-8010371 getaddrinfo can fail with EAI_SYSTEM/EAGAIN, causes UnknownHostException to be thrown
-
- Resolved
-