JDK-8246031 : SSLSocket.getSession() doesn't close connection for timeout/ interrupts
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 8u261,11.0.8,15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-05-28
  • Updated: 2024-11-13
  • Resolved: 2020-06-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14 JDK 15 JDK 16 JDK 8
11.0.8-oracleFixed 13.0.4Fixed 14.0.2Fixed 15Fixed 16 b01Fixed 8u261Fixed
Description
Connection is not getting closed for getSession, timeout and interrupts. Due to this hang observed with coherence SSLNIOServer test.
Comments
Changeset: bb867793 Author: Prasadrao Koppula <pkoppula@openjdk.org> Date: 2020-06-11 21:54:51 +0000 URL: https://git.openjdk.java.net/lanai/commit/bb867793
02-07-2020

Fix request (13u): I would like to have this fix in 13.0.4 for parity with 11.0.8. The original change applies cleanly.
18-06-2020

jdk11 backport request I would like to have the patch in OpenJDK 11 as well, for better parity with 11.0.8-oracle . The patch applies cleanly.
17-06-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/ecfa5e951d56 User: coffeys Date: 2020-06-11 20:07:30 +0000
11-06-2020

Review is out, https://mail.openjdk.java.net/pipermail/security-dev/2020-June/021986.html
05-06-2020

Issue is due JDK-8239798/JDK-8239788 fix. For SSLSocket:getSession, connection is in open state for timeout/interrupts exception but due to comparability reason, it should be closed.
04-06-2020