com.sun.jndi.ldap.Connection::leanup does not close the underlying socket if the is an IOException generation when the output stream was flushing the buffer.
Please refer to the bug https://bugs.openjdk.org/browse/JDK-8313657. ------------- Commit messages: - reformat the code - remove unreachable code and reformatting the code - 8313657 : com.sun.jndi.ldap.Connection.cleanup does not close connections on SocketTimeoutErrors Changes: https://git.openjdk.org/jdk/pull/15143/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15143&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8313657 Stats: 197 lines in 2 files changed: 196 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/15143.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15143/head:pull/15143 PR: https://git.openjdk.org/jdk/pull/15143