7010192: InetAddress.isReachable hits ShouldNotReachHere with hs20-b04 (win)
Reviewed-by: chegar
This commit is contained in:
parent
b06db2d390
commit
f9239f8eac
jdk/src/windows/native/java/net
@ -559,8 +559,8 @@ Java_java_net_Inet4AddressImpl_isReachable0(JNIEnv *env, jobject this,
|
||||
|
||||
if (timeout >= 0) {
|
||||
optlen = sizeof(connect_rv);
|
||||
if (JVM_GetSockOpt(fd, SOL_SOCKET, SO_ERROR, (void*)&connect_rv,
|
||||
&optlen) <0) {
|
||||
if (getsockopt(fd, SOL_SOCKET, SO_ERROR, (void*)&connect_rv,
|
||||
&optlen) <0) {
|
||||
connect_rv = WSAGetLastError();
|
||||
}
|
||||
|
||||
|
@ -671,8 +671,8 @@ Java_java_net_Inet6AddressImpl_isReachable0(JNIEnv *env, jobject this,
|
||||
if (timeout >= 0) {
|
||||
/* has connection been established? */
|
||||
optlen = sizeof(connect_rv);
|
||||
if (JVM_GetSockOpt(fd, SOL_SOCKET, SO_ERROR, (void*)&connect_rv,
|
||||
&optlen) <0) {
|
||||
if (getsockopt(fd, SOL_SOCKET, SO_ERROR, (void*)&connect_rv,
|
||||
&optlen) <0) {
|
||||
connect_rv = WSAGetLastError();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user