summaryrefslogtreecommitdiffstats
path: root/ssl/statem/statem_srvr.c
diff options
context:
space:
mode:
authorTodd Short <todd.short@me.com>2022-07-28 20:05:54 -0400
committerTomas Mraz <tomas@openssl.org>2022-08-01 13:16:14 +0200
commit2db226ce01be804fbd2d60b019c897305a8f091e (patch)
treeb2fb6d0e4a423dc7a647d66301d688e9fd564c40 /ssl/statem/statem_srvr.c
parentf5c73318935450b4082b587eff98fa47c96755ad (diff)
Free up space in the session cache before adding.
Fixes #18690 In some circumstances, it's possible that when using an external database for the session cache, that pulling in an entry from that cache to the internal cache will cause the newly added entry to be deleted from the internal cache. This is likely to happen when the internal cache is set to have a small size, and the newly added entry's timeout places it at the end of the cache list. This could be fixed by updating the timestamp of the session (via `SSL_SESSION_set_time()` or `SSL_SESSION_set_timeout()`) before adding to the cache. But that may not be desireable. Reviewed-by: Viktor Dukhovni <viktor@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18905) (cherry picked from commit 4842a27b902660b672d72d2ed23e941461ca481c)
Diffstat (limited to 'ssl/statem/statem_srvr.c')
0 files changed, 0 insertions, 0 deletions