aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2016-05-02 15:26:18 +0200
committerIngela Anderton Andin <[email protected]>2016-05-02 15:26:18 +0200
commit94e70f82df417d9e673a13d101007d7ae8932df7 (patch)
tree3eeb7ee5da02c73ead0c0cf28e27b936dd885e92 /lib/ssl/src
parent91f993a9cc173ad51b2d44b2e4cc09de9975f1d1 (diff)
parent256e01ce80b3aadd63f303b9bda5722ad313220f (diff)
downloadotp-94e70f82df417d9e673a13d101007d7ae8932df7.tar.gz
otp-94e70f82df417d9e673a13d101007d7ae8932df7.tar.bz2
otp-94e70f82df417d9e673a13d101007d7ae8932df7.zip
Merge branch 'ingela/ssl-max-session-table/OTP-13490'
* ingela/ssl-max-session-table/OTP-13490: ssl: Adjust max table to work as expected from documentation
Diffstat (limited to 'lib/ssl/src')
-rw-r--r--lib/ssl/src/ssl_manager.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/ssl_manager.erl b/lib/ssl/src/ssl_manager.erl
index 2349158b11..60b4fbe995 100644
--- a/lib/ssl/src/ssl_manager.erl
+++ b/lib/ssl/src/ssl_manager.erl
@@ -610,8 +610,8 @@ server_register_session(Port, Session, #state{session_cache_server_max = Max,
do_register_session(Key, Session, Max, Pid, Cache, CacheCb) ->
try CacheCb:size(Cache) of
- N when N > Max ->
- invalidate_session_cache(Pid, CacheCb, Cache);
+ Max ->
+ invalidate_session_cache(Pid, CacheCb, Cache);
_ ->
CacheCb:update(Cache, Key, Session),
Pid