This content has been marked as final. Show 5 replies
Thanks for your good answer.
I try to use the session context as following
SSLContext context = SSLContext.getInstance("TLSv1");
KeyManager keyManagers = kmf.getKeyManagers();
SSLSessionContext scontext = context.getServerSessionContext();
context.init(keyManagers, null, null);
but i don't see it influence the ssl socket connections to my server! The SSLSession is not store in SSLSessionContext!
Maybe i don't use it rightly. Can u tell the the right way to use it! thanks!
Edited by: 841025 on Mar 2, 2011 9:51 PM
The SSLSession is not store in SSLSessionContext!By what test?
Can you tell the the right way to use it!As I said above, you don't have to use it at all. It happens automatically.
NB the SSL session timeout you are setting of 10 seconds is absurd: an hour or so would be more like it. And why the limit of 100 sessions? I would have a good look at the default values before playing around with them. FYI the defaults in JDK 1.6 are zero=infinite cache size and a timeout of 24 hours.
Thanks for your quick replies!
When client was connecting to server, i get the ids from scontext:
Enumeration<byte> ids = scontext.getIds();
And the result is false at print line.
I set the size is 100 because i don't know the default value.
I set the time-out value is 10 because i want to see what happen when time is out. But i don't see any thing.
Can you tell me why?
Edited by: 841025 on Mar 2, 2011 10:43 PM