Using play-ws with play 2.8.2 with wsClient to connect to a backend listening on https port. This service specifically does not require client certs so ssl-mutual-auth is not necessary. Occasionally we see a spike in production so I was looking to see if changing the config in application.conf could achieve faster processing.
all = true
useragent = “toranws”
acceptAnyCertificate = true
I cannot deploy this to prod but see that with tracing enabled, it is still creating SSLEngine and despite getHandshakeStatus() returning NOT_HANDSHAKING, it is still showing beginHandshake() and also attempts several getSession() with different ciphers. Is there a way to further reduce this overhead of SSL?
I have attached the logging output is here: https://pastebin.com/TpFJbaQq