[jdk11u-dev] RFR: 8274736: Concurrent read/close of SSLSockets causes SSLSessions to be invalidated unnecessarily

Zhengyu Gu zgu at openjdk.java.net
Mon Dec 20 16:20:30 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)

Got approval, integrated.

-------------

PR: https://git.openjdk.java.net/jdk11u-dev/pull/711


More information about the jdk-updates-dev mailing list