Integrated: 8265309: com/sun/jndi/dns/ConfigTests/Timeout.java fails with "Address already in use" BindException
Aleksei Efimov
aefimov at openjdk.java.net
Fri May 28 14:58:10 UTC 2021
On Thu, 27 May 2021 15:02:01 GMT, Aleksei Efimov <aefimov at openjdk.org> wrote:
> Hi,
>
> `com/sun/jndi/dns/ConfigTests/Timeout.java ` was seen failing intermittently with "Address already in use" `BindException`. The reason of this failure is that `disconnect` call in JNDI `DnsClient` fails to rebind the datagram socket to the original port during `disconnect` call (the failure is in `DatagramChannel::repairSocket`).
> Since Datagram socket is not reused and closed after the failure `finally` block with the `disconnect` call can be removed.
>
> The fix was tested with all available JNDI/DNS tests, and no failures related to the change were observed.
This pull request has now been integrated.
Changeset: 0c0ff7fb
Author: Aleksei Efimov <aefimov at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/0c0ff7fb0c1ff45ebaee863f73902cab1e9de4f3
Stats: 31 lines in 2 files changed: 0 ins; 5 del; 26 mod
8265309: com/sun/jndi/dns/ConfigTests/Timeout.java fails with "Address already in use" BindException
Reviewed-by: dfuchs
-------------
PR: https://git.openjdk.java.net/jdk/pull/4227
More information about the core-libs-dev
mailing list