RFR: 8293696: java/nio/channels/DatagramChannel/SelectWhenRefused.java fails with "Unexpected wakeup"

Daniel Fuchs dfuchs at openjdk.org
Thu Oct 27 10:44:28 UTC 2022


On Thu, 27 Oct 2022 09:32:18 GMT, Darragh Clarke <duke at openjdk.org> wrote:

> I think that this would be good, but because of the nature of the refuser, would we be reliably able to read datagrams sent, since they should be getting refused and throwing an exception before they can be read?
>
> If they can be read, I could change the logUnexpectedWakeup method to return a boolean for whether its local or not since it attempts to read it already

Yes - that's a good idea - and maybe change the method name to "checkUnexpectedWakeup" if you change it to return a boolean.

-------------

PR: https://git.openjdk.org/jdk/pull/10851


More information about the nio-dev mailing list