Forum Discussion
ronnieandsandyd
14 years agoNew Contributor
With this change to the code and a user configuration of "Close Connections between each request" for a load test, SSL sessions are cached but never reused because they are invalidated.
I think it would be best to follow one of fhartojo's suggestions (enumerated below)
"I'm sure that's not the best fix for this problem. 1) May be only do that (invalidate session) as a retry in case of an SSL handshake error or only 2) set the enabled cipher suites if it's not using a cached session."
OR a third one: 3) have an "invalidate SSL session between each request" configuration option.
We've commented out the "socket.getSession().invalidate();" to get the behavior we desire.
Thanks!
I think it would be best to follow one of fhartojo's suggestions (enumerated below)
"I'm sure that's not the best fix for this problem. 1) May be only do that (invalidate session) as a retry in case of an SSL handshake error or only 2) set the enabled cipher suites if it's not using a cached session."
OR a third one: 3) have an "invalidate SSL session between each request" configuration option.
We've commented out the "socket.getSession().invalidate();" to get the behavior we desire.
Thanks!
Related Content
Recent Discussions
- 18 days ago