RFR: JDK-8265362 java/net/Socket/UdpSocket.java fails with "java.net.BindException: Address already in use" (macos-aarch64)

Alan Bateman alanb at openjdk.java.net
Sat May 22 06:49:01 UTC 2021

On Sat, 22 May 2021 06:45:33 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> yes, thanks for that  ... updated as requested
> Thanks, and if you want to keep it consistent with the existing code then you could rename "Socket newUdpSocket" and "biEx", or just change it to "return new Socket(...)".

BTW: Is one retry enough? There is at least one other replace where we've had to retry to workaround a macOS bug and one retry was enough there too.


PR: https://git.openjdk.java.net/jdk/pull/4103

More information about the net-dev mailing list