Details
-
Bug
-
Resolution: Fixed
-
P2
-
8u271, 11.0.9-oracle, 13, 15, 16
-
b26
-
b27
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8257949 | 11.0.11-oracle | Prajwal Kumaraswamy | P2 | Closed | Fixed | b01 |
JDK-8258261 | 11.0.11 | Alex Kasko | P2 | Resolved | Fixed | b01 |
JDK-8259013 | openjdk8u302 | Alex Kasko | P2 | Resolved | Fixed | b03 |
JDK-8257950 | 8u291 | Prajwal Kumaraswamy | P2 | Closed | Fixed | b01 |
JDK-8259329 | 8u281 | Prajwal Kumaraswamy | P2 | Closed | Fixed | b31 |
JDK-8258904 | 8u271 | Prajwal Kumaraswamy | P2 | Closed | Fixed | b37 |
JDK-8262626 | emb-8u291 | Prajwal Kumaraswamy | P2 | Resolved | Fixed | team |
Description
The close method calls duplexCloseOutput() and duplexCloseInput(). In case of an exception in any of these methods, the call to closeSocket() is bypassed, and the underlying Socket may not be closed.
This manifests in a real life leak after
This problem can be reproduced by this code:
SSLSocket sslSocket = (SSLSocket)SSLSocketFactory.getDefault().createSocket();
sslSocket.getSSLParameters();
sslSocket.close();
This is what happens when SSLContext.getDefault().getDefaultSSLParameters() is called, with close() being eventually called by the finalizer.
Attachments
Issue Links
- backported by
-
JDK-8258261 SSLSocket that is never bound or connected leaks socket resources
-
- Resolved
-
-
JDK-8259013 SSLSocket that is never bound or connected leaks socket resources
-
- Resolved
-
-
JDK-8262626 SSLSocket that is never bound or connected leaks socket resources
-
- Resolved
-
-
JDK-8257949 SSLSocket that is never bound or connected leaks socket resources
-
- Closed
-
-
JDK-8257950 SSLSocket that is never bound or connected leaks socket resources
-
- Closed
-
-
JDK-8258904 SSLSocket that is never bound or connected leaks socket resources
-
- Closed
-
-
JDK-8259329 SSLSocket that is never bound or connected leaks socket resources
-
- Closed
-
- relates to
-
JDK-8236464 SO_LINGER option is ignored by SSLSocket in JDK 11
-
- Closed
-
-
JDK-8257670 sun/security/ssl/SSLSocketImpl/SSLSocketLeak.java reports leaks
-
- Resolved
-
-
JDK-8257884 Re-enable sun/security/ssl/SSLSocketImpl/SSLSocketLeak.java as automatic test
-
- Resolved
-
-
JDK-8224829 AsyncSSLSocketClose.java has timing issue
-
- Closed
-