Currently, in SocketChannelImpl.java, ServerSocketChannelImpl.java and DatagramChannelImpl.java, pollXXX(pollRead, pollConnected, pollAccept) only check whether return result of Net.poll(...) > 0, it does not check whether it is/includes POLLERR, POLLHUP, POLLNVAL, this will cause bug JDK-8201474.
The fix ofJDK-8201474 is more like a workaround rather than fix the root cause.
In pollXXX should check further even if Net.poll(...) > 0, in case of POLLERR, POLLHUP, POLLNVAL, completed should be set as false.
The fix of
In pollXXX should check further even if Net.poll(...) > 0, in case of POLLERR, POLLHUP, POLLNVAL, completed should be set as false.
- relates to
-
JDK-8201474 (so) Socket adaptor connect(InetAddress, timeout) succeeds when connection fails
-
- Closed
-