aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-09-04 10:12:42 +0200
committerIngela Anderton Andin <[email protected]>2017-09-04 10:12:42 +0200
commit2ae7a0a0fbf33e1fa8f1f35894b6468aa43f451b (patch)
tree0b9d5f24cc6c24152f4fe20abfe3aeed018e98c4 /lib/ssl
parent82b56e039beeeaff2536869e8f2c4fb143e70cb2 (diff)
parentd7cd38006fbcbfe10fdee5b26bfffd644fadeb41 (diff)
downloadotp-2ae7a0a0fbf33e1fa8f1f35894b6468aa43f451b.tar.gz
otp-2ae7a0a0fbf33e1fa8f1f35894b6468aa43f451b.tar.bz2
otp-2ae7a0a0fbf33e1fa8f1f35894b6468aa43f451b.zip
Merge branch 'ingela/ssl/session-cache-max/OTP-14556' into maint
* ingela/ssl/session-cache-max/OTP-14556: ssl: Mend Max session handling
Diffstat (limited to 'lib/ssl')
-rw-r--r--lib/ssl/src/ssl_manager.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_manager.erl b/lib/ssl/src/ssl_manager.erl
index ca9aaf4660..ef7c3de7af 100644
--- a/lib/ssl/src/ssl_manager.erl
+++ b/lib/ssl/src/ssl_manager.erl
@@ -563,7 +563,7 @@ 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
- Max ->
+ Size when Size >= Max ->
invalidate_session_cache(Pid, CacheCb, Cache);
_ ->
CacheCb:update(Cache, Key, Session),