RFR: 8374802: Assert if UDP receive buffer is too small to hold capacity to avoid hanging test

Andreas Steiner asteiner at openjdk.org
Thu Jan 15 15:31:41 UTC 2026


On Thu, 15 Jan 2026 14:40:22 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> To avoid the test is hanging due to the too small receive buffer, check the receive buffer can hold the capacity. If not, assert. Like we do already in java/nio/channels/DatagramChannel/SendReceiveMaxSize.java (https://bugs.openjdk.org/browse/JDK-8313873)
>
> This test (and the equivalent for DatagramChannel) was initially created to work on macOS. We should check into the history to see how/when it was extended to work on all platforms.
> 
> BTW: No objection to changing the test, it's just the test `@summary` is outdated.

@AlanBateman: with this commit it was extended to run on all platforms: https://github.com/openjdk/jdk/commit/a096c0a83f900c05702f94c35adb51746c0683cd

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

PR Comment: https://git.openjdk.org/jdk/pull/29251#issuecomment-3755421174


More information about the net-dev mailing list