I want to use SSLSocket over a high latency connexion. The SSL Handshake requires several roundtrip, it will be causing a high delay before being able to work this the socket.
It becomes a bottleneck when I need a lot of short socket communication.
Of course the alternative whould be implementing VirtualSocket over Socket but I think this approach was deprecated in some famous frameworks making me think it is quite tricky…
In JAVA 6, is there a session mecanism allowing the user to open a second socket without handshaking again? How to configure this?
I would have liked to code a test by myself but I do not have access to the production environment (where high latency occurs) and don’t know about socket latency simulation tools.
Thanks for your help,
Renaud
The JSSE SSL Session mechanism works automatically as long as the peer supports it as well. Make sure the SSL Session timeout at the peer is set to a reasonable value for your purpose, such as 15 minutes.