The Java application (JDK 21) that our team has been working on has started to become more unstable when it comes to our clients timing out. I haven't been working on this application for very long but I have a suspicion that it might be because how we go about making our connection might be outdated. The application uses SSLSocketFactory with the X509 Trust manager but research has been telling me that we should be upgrading to or implementing SSLConnectionSocketFactory instead which is more up-to-date. My first question is could this change help client connection stability? I'm also not very experienced when it comes to creating connections in Java or applications in general so I'm wondering if anybody has an idea how long it would take 2 developers to make this change to our current application?
We are currently using SSLSocketFactory with JDK 21 and the trust manager X509 is implemented as well