RFR: 8232513: java/net/DatagramSocket/PortUnreachable.java still fails intermittently with BindException

Daniel Fuchs daniel.fuchs at oracle.com
Wed Dec 4 16:10:51 UTC 2019


Hi Julia,

Looks good to me - but is:
   31  * @library /test/lib
actually needed?

best regards,

-- daniel

On 04/12/2019 15:40, Julia Boes wrote:
> Hi,
> 
> The test PortUnreachable closes a DatagramSocket and tries to rebind it 
> to the same port, this causes the test to fail rarely with a 
> BindException (I did 500 test runs and couldn't observe a failure). To 
> decrease the likelihood of this to happen, the fix increases the number 
> of bind retries and test repeats.
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8232513
> 
> Webrev: http://cr.openjdk.java.net/~jboes/webrevs/8232513/webrev.00/
> 
> Regards,
> 
> Julia
> 



More information about the net-dev mailing list