JDK 9 RFR of 8165000: Selector.select(timeout) throws IOException when timeout is a large long
brian.burkhalter at oracle.com
Thu Sep 1 15:45:55 UTC 2016
On Sep 1, 2016, at 3:54 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> On 01/09/2016 08:28, Langer, Christoph wrote:
>> Hi Brian,
>> I'm wondering, if we knew that the maximum accepted value for timeout is 0x7fffffff, then we should probably cap the timeout before calling kevent?
> I agree, it the time out is clamped then it can be done in KQueueArrayWrapper.poll before kqueue is called.
Values much larger than 0x7fffffff in fact *are* accepted which is why I chose this version but I can change it to clamp to 0x7fffffff and remove the kevent() retry.
More information about the nio-dev