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

Alan Bateman alanb at openjdk.org
Thu Jan 15 14:44:10 UTC 2026


On Thu, 15 Jan 2026 13:17:30 GMT, Andreas Steiner <asteiner 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.

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

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


More information about the net-dev mailing list