8249812: java/net/DatagramSocket/PortUnreachable.java still fails intermittently with SocketTimeoutException

Daniel Fuchs daniel.fuchs at oracle.com
Wed Jul 22 11:28:02 UTC 2020


Hi,

Please find below a trivial fix for:

8249812: java/net/DatagramSocket/PortUnreachable.java still fails
          intermittently with SocketTimeoutException
https://bugs.openjdk.java.net/browse/JDK-8249812

webrev:
http://cr.openjdk.java.net/~dfuchs/webrev_8249812/webrev.00/

The main method has a retry logic that catches BindException,
but that exception is swallowed by serverSend(). serverSend()
should propagate that exception, as there is no point waiting
for the DatagramPacket to arrive if it has not been sent.

best regards,

-- daniel


More information about the net-dev mailing list