RFR: 8374802: java/net/DatagramSocket/SendReceiveMaxSize.java fails on AIX due to small default RCVBUF size

Alan Bateman alanb at openjdk.org
Fri Jan 16 11:45:15 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: [a096c0a](https://github.com/openjdk/jdk/commit/a096c0a83f900c05702f94c35adb51746c0683cd)

Thanks for checking, the summary should have been updated when the test was changed and extended to run on all platforms. We can create a follow-up to fix that.

Can you update the copyright header? As you note, this just puts in the same check that is already in the DC test.

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

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


More information about the net-dev mailing list