JDK-8153192 : (se) Selector.select(long) uses wrong timeout after EINTR (lnx)
Type:Bug
Component:core-libs
Sub-Component:java.nio
Affected Version:9
Priority:P3
Status:Closed
Resolution:Fixed
Submitted:2016-03-31
Updated:2016-10-13
Resolved:2016-05-04
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
This bug was reported here:
http://mail.openjdk.java.net/pipermail/nio-dev/2016-March/003612.html
EINTR should be rare so maybe this is why it has not been noticed before.
We should check the other selector implementations while we're at it.
The problem appears to afflict two files, the mentioned in the nio-dev posting linked to the issue description and one other:
src/java.base/linux/native/libnio/ch/EPollArrayWrapper.c
src/java.base/solaris/native/libnio/ch/DevPollArrayWrapper.c