mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8201474: (so) Socket adaptor connect(InetAddress, timeout) succeeds when connection fails
Reviewed-by: bpb
This commit is contained in:
parent
85fbf32898
commit
45fb75c85a
5 changed files with 46 additions and 16 deletions
|
@ -700,7 +700,8 @@ Java_sun_nio_ch_Net_poll(JNIEnv* env, jclass this, jobject fdo, jint events, jlo
|
|||
if (rv >= 0) {
|
||||
return pfd.revents;
|
||||
} else if (errno == EINTR) {
|
||||
return IOS_INTERRUPTED;
|
||||
// interrupted, no events to return
|
||||
return 0;
|
||||
} else {
|
||||
handleSocketError(env, errno);
|
||||
return IOS_THROWN;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue