aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2016-04-14 14:52:53 +0200
committerIngela Anderton Andin <[email protected]>2016-04-14 15:13:58 +0200
commit256e01ce80b3aadd63f303b9bda5722ad313220f (patch)
tree3a647b4721ceedd31babfdf665adbdad02202337 /lib
parent04e79317308588af47f236469e9d286dccc177ec (diff)
downloadotp-256e01ce80b3aadd63f303b9bda5722ad313220f.tar.gz
otp-256e01ce80b3aadd63f303b9bda5722ad313220f.tar.bz2
otp-256e01ce80b3aadd63f303b9bda5722ad313220f.zip
ssl: Adjust max table to work as expected from documentation
The session table max size should be the configurable value Max and not Max + 1.
Diffstat (limited to 'lib')
-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 e273581de9..8d2dad91d9 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