JDK 9 RFR of 8176332: Increase sleep time in java/nio/channels/Selector/ChangingInterests.java write1()
Brian Burkhalter
brian.burkhalter at oracle.com
Thu Mar 9 02:00:03 UTC 2017
On Mar 8, 2017, at 5:56 PM, Martin Buchholz <martinrb at google.com> wrote:
> Thanks for getting rid of all the flaky sleeps!
:-)
> I would sleep for less than 50ms on each retry. I suspect 1ms is typically enough.
You might be right. With the version in the JDK tree I could never reproduce the problem. I actually think this sleep will almost never happen, i.e., one byte will be read on the first try.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20170308/54d36056/attachment.html>
More information about the nio-dev
mailing list