Renaud
Renaud

Reputation: 2129

sslsocket session mecanism for high latency connexion

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

Upvotes: 4

Views: 163

Answers (1)

user207421
user207421

Reputation: 311050

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.

Upvotes: 1

Related Questions