RFR: 8312166: (dc) DatagramChannel's socket adaptor does not release carrier thread when blocking in receive [v2]

Alan Bateman alanb at openjdk.org
Wed Jul 19 12:16:43 UTC 2023


On Wed, 19 Jul 2023 11:29:21 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> Given that the goal of this test is to exercise the case where the `SecurityManager` rejects incoming packets and then times out the receive call, would it be better to just throw `SecurityException` here for all host/port combinations instead of checking the sender?

checkAccess is called for other reasons too and the intention was just to drop datagrams from the sender. However, you may be right that there are other tests on the same host that are sending datagrams to random ports and could cause this test to fail if they happen to send it to the port that the test is using. So I'll re-test with that change.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14901#discussion_r1267987200


More information about the nio-dev mailing list