RFR: 8313657 : com.sun.jndi.ldap.Connection.cleanup does not close connections on SocketTimeoutErrors [v4]
Vyom Tewari
vtewari at openjdk.org
Wed Aug 9 05:02:36 UTC 2023
On Wed, 9 Aug 2023 00:21:55 GMT, Weibing Xiao <duke at openjdk.org> wrote:
>> 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.
>
> Weibing Xiao has updated the pull request incrementally with one additional commit since the last revision:
>
> update method name and test case
test/jdk/com/sun/jndi/ldap/SocketCloseTest.java line 81:
> 79:
> 80: public static class CustomSocketFactory extends SocketFactory {
> 81: public static CustomSocket customSocket = new CustomSocket();
you can make 'customSocket' to private.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15143#discussion_r1287937502
More information about the core-libs-dev
mailing list