Home » Java » java – Unreleased Resource: Sockets Fortify issue-Exceptionshub

java – Unreleased Resource: Sockets Fortify issue-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

We are facing a strange issue reported by fortify. We are using SSLSocketFactory(which will internally handling the socket.close() releasing logic) class to manage creation of socket connections. But fortify seems expecting the socket to be released. Any advice please about this behaviour?

Note: SSLSocketFactory class doesn’t have close() or destory/remove/release methods.

How to&Answers: