Skip to content

Commit

Permalink
8169246: java/net/DatagramSocket/ReportSocketClosed.java fails interm…
Browse files Browse the repository at this point in the history
…ittently with BindException

Backport-of: 33c9c89
  • Loading branch information
RealCLanger committed Aug 27, 2021
1 parent 069b4cc commit 7100a65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/jdk/java/net/DatagramSocket/ReportSocketClosed.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -37,7 +37,7 @@ public static void main(String[] args) throws Exception {
byte[] array = {21,22,23};

try {
soc = new DatagramSocket(4001);
soc = new DatagramSocket(0);
sin = InetAddress.getLocalHost();
soc.close();
} catch (Exception e) {
Expand Down

1 comment on commit 7100a65

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.