RFR: 8287580: (se) CancelledKeyException during channel registration

Alan Bateman alanb at openjdk.java.net
Thu Jun 2 15:15:34 UTC 2022


On Thu, 2 Jun 2022 14:50:48 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> No failure, it was for symmetry with the other catch block; will remove.

Thanks. The other catch is the closed Selector case. The caller has to remove the key from the key set as otherwise it might get left there. We don't have that issue with the cancelled key case.

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

PR: https://git.openjdk.java.net/jdk/pull/8978


More information about the nio-dev mailing list