[jdk11u-dev] Integrated: 8274736: Concurrent read/close of SSLSockets causes SSLSessions to be invalidated unnecessarily
Zhengyu Gu
zgu at openjdk.java.net
Mon Dec 20 16:20:32 UTC 2021
On Wed, 8 Dec 2021 20:32:38 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:
> Backport this patch for parity with Oracle 11.0.15.
>
> The patch applies cleanly, but new test does not build. This is due to a couple of CRs [1][2] that affect the test's super class `SSLSocketTemplate`, are not in jdk11u.
>
> Additional changes to fix the test:
> 1. Changed member `private volatile int serverPort = 0;` => `protected volatile int serverPort = 0;` in `SSLSocketTemplate`
> 2. Changed method `private void doServerSide()` => `protected void doServerSide()` in `SSLSocketTemplate`
> 3. Added member `protected volatile InetAddress serverAddress = null;` to new test, test never change the value.
>
> Test:
> - [x] Passed new test.
>
>
> [1] [JDK-8209362](https://bugs.openjdk.java.net/browse/JDK-8209362)
> [2] [JDK-8230435](https://bugs.openjdk.java.net/browse/JDK-8230435)
This pull request has now been integrated.
Changeset: ec89f1b6
Author: Zhengyu Gu <zgu at openjdk.org>
URL: https://git.openjdk.java.net/jdk11u-dev/commit/ec89f1b6c317932e937291f43e68d04ff77204b8
Stats: 435 lines in 3 files changed: 429 ins; 0 del; 6 mod
8274736: Concurrent read/close of SSLSockets causes SSLSessions to be invalidated unnecessarily
Reviewed-by: mdoerr
Backport-of: 8822d41fdcc2c2d568badd72635dc587d21dbd63
-------------
PR: https://git.openjdk.java.net/jdk11u-dev/pull/711
More information about the jdk-updates-dev
mailing list