[jdk11u-dev] RFR: 8209362: sun/security/ssl/SSLSocketImpl/ReuseAddr.java failed due to "BindException: Address already in use (Bind failed)"
Antonio Vieiro
avieiro at openjdk.org
Mon Feb 16 08:26:26 UTC 2026
On Thu, 12 Feb 2026 11:30:18 GMT, Antonio Vieiro <avieiro at openjdk.org> wrote:
> Backport of [JDK-8209362](https://bugs.openjdk.org/browse/JDK-8209362) to JDK11.
>
> This is the first of a series of backports to convert the interface `SSLContextTemplate.java` in JDK11 to an abstract class as in JDK17, with the objective of making future backports easier, [as discussed earlier](https://github.com/openjdk/jdk11u-dev/pull/3136#pullrequestreview-3747461154).
>
> The change converts `private void doClientSide()` in `SSLSocketTemplate.java` to a `protected` method (as [`doServerSide()` is](https://github.com/openjdk/jdk11u-dev/blob/9ba9b672913e88b857d671d0b9458753418aff16/test/jdk/javax/net/ssl/templates/SSLSocketTemplate.java#L233)), paving the way to move `SSLSocketTemplate.java` internals into `SSLContextTemplate.java` in subsequent backports.
>
> As a side effect the `test/jdk/sun/security/ssl/SSLSocketImpl/ReuseAddr.java` test is greatly simplified by using the `SSLSocketTemplate` base class.
>
> All security tests pass:
>
>
> ==============================
> Test summary
> ==============================
> TEST TOTAL PASS FAIL ERROR
> jtreg:test/jdk:jdk_security 1361 1361 0 0
> ==============================
> TEST SUCCESS
>
>
> Including the modified test:
>
> ==============================
> Test summary
> ==============================
> TEST TOTAL PASS FAIL ERROR
> jtreg:test/jdk/sun/security/ssl/SSLSocketImpl/ReuseAddr.java
> 1 1 0 0
> ==============================
> TEST SUCCESS
> This would be clean if not for the inclusion of two fragments in a previous backport, #711
Exactly. Let's ask for approval.
-------------
PR Comment: https://git.openjdk.org/jdk11u-dev/pull/3150#issuecomment-3907073347
More information about the jdk-updates-dev
mailing list