JDK-8314063 : The socket is not closed in Connection::createSocket when the handshake failed for LDAP connection
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.naming
  • Affected Version: 8,11,17,21
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2023-08-09
  • Updated: 2024-03-01
  • Resolved: 2023-08-25
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 17 JDK 21 JDK 22 JDK 8
11.0.22-oracleFixed 17.0.10-oracleFixed 21.0.1Fixed 22 b13Fixed 8u381-perfFixed
Related Reports
Relates :  
Relates :  
Description
For LDAP connection, if the value of com.sun.jndi.ldap.connect.timeout is set too small or not an optimal value for the system, after the socket is created and connected to the server, but the handshake between the client and server fails due to socket time out, the opened socket is not closed properly.
Comments
Fix request [11u] I backport this for parity with 11.0.22-oracle. Medium risk, small change for not supported attribute. Test passes. SAP nightly testing passed.
27-10-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/2197 Date: 2023-10-20 07:23:09 +0000
20-10-2023

Fix request [17u] I backport this for parity with 17.0.10-oracle. Medium risk, but a useful improvement. Clean backport. Test passes. SAP nighlty testing passed.
22-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1755 Date: 2023-09-20 10:09:36 +0000
20-09-2023

Calls a method introduced in JDK-8313657.
14-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u/pull/112 Date: 2023-08-28 14:39:24 +0000
28-08-2023

Changeset: f2383b3c Author: Weibing Xiao <weibing.xiao@oracle.com> Committer: Aleksei Efimov <aefimov@openjdk.org> Date: 2023-08-25 12:20:18 +0000 URL: https://git.openjdk.org/jdk/commit/f2383b3cbd1096f0b38e89a3d876da2217511f11
25-08-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15294 Date: 2023-08-15 17:30:54 +0000
15-08-2023