Received fatal alert: handshake_failure
Posted: 14 Jun 2019, 20:43
Hi there,
Been using SmartFox for a bit over a year now and have had no issues until just recently. I'm not 100% sure if the issue even is with SmartFox, but I wanted to bring it up here anyway, in case anyone can shed some light on this situation. In our extension, we are making http requests using Apache HttpComponents. This has been working perfect for us for a long time, but yesterday we started receiving this "SSLHandshakeException: Received fatal alert: handshake_failure" when trying to make one of our requests. What's really weird is that neither we nor the server we're trying to connect to have changed anything. I don't know how it could suddenly stop working if nothing has changed, but that is strangely the case.
After doing some reading, I saw that it could be due to mismatched ciphers or TLS version between us and the other server. I read that a possible fix is to update the jre's policy .jars to the JCE Unlimited Strength Jurisdiction Policy Files (https://www.oracle.com/technetwork/java ... 33166.html). So I did that, and now the request is going through again. However, the server is now incredibly slow, specifically with database calls. I know the issue is not with the database calls themselves, because we have a second server running the exact same extension but with the old policy files and it's pretty damn fast. Even still, I tried optimizing our queries on the slow server and it didn't help.
Any idea what could be happening here? Why would replacing those .jars cause such a slow down in performance? Is there something else we should do to fix the handshake error?
Any help would be greatly appreciated. Thanks!
Been using SmartFox for a bit over a year now and have had no issues until just recently. I'm not 100% sure if the issue even is with SmartFox, but I wanted to bring it up here anyway, in case anyone can shed some light on this situation. In our extension, we are making http requests using Apache HttpComponents. This has been working perfect for us for a long time, but yesterday we started receiving this "SSLHandshakeException: Received fatal alert: handshake_failure" when trying to make one of our requests. What's really weird is that neither we nor the server we're trying to connect to have changed anything. I don't know how it could suddenly stop working if nothing has changed, but that is strangely the case.
After doing some reading, I saw that it could be due to mismatched ciphers or TLS version between us and the other server. I read that a possible fix is to update the jre's policy .jars to the JCE Unlimited Strength Jurisdiction Policy Files (https://www.oracle.com/technetwork/java ... 33166.html). So I did that, and now the request is going through again. However, the server is now incredibly slow, specifically with database calls. I know the issue is not with the database calls themselves, because we have a second server running the exact same extension but with the old policy files and it's pretty damn fast. Even still, I tried optimizing our queries on the slow server and it didn't help.
Any idea what could be happening here? Why would replacing those .jars cause such a slow down in performance? Is there something else we should do to fix the handshake error?
Any help would be greatly appreciated. Thanks!