RFR: 8354530: AIX: sporadic unexpected errno when calling setsockopt in Net.joinOrDrop
Alan Bateman
alanb at openjdk.org
Wed May 14 08:28:56 UTC 2025
On Fri, 2 May 2025 08:13:46 GMT, Arno Zeller <azeller at openjdk.org> wrote:
> On AIX we have sporadic EAGAIN errors when calling setsockopt. This is undocumented, but has been seen in tests.
> Further test did show that it might not be enough to only try it once again. In our daily test environment we have seen no more unexpected exceptions when we retried 3 times.
src/java.base/unix/native/libnio/ch/Net.c line 675:
> 673: #endif
> 674: #ifdef _AIX
> 675: // workaround AIX bug where IP_ADD_MEMBERSHIP fails intermittently sometimes even more than one time...
Adding a retry loop is okay, we have to retry on macOS too. Can you drop "even more than one time..." from the comment as it doesn't help.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24996#discussion_r2088368750
More information about the nio-dev
mailing list