]> git.ipfire.org Git - thirdparty/openssl.git/commit - ssl/statem/statem_clnt.c
Optimize session cache flushing
authorTodd Short <tshort@akamai.com>
Fri, 5 Apr 2019 18:17:22 +0000 (14:17 -0400)
committerPauli <pauli@openssl.org>
Thu, 10 Jun 2021 08:32:25 +0000 (18:32 +1000)
commit25959e04c350c2b82d545ea38b18ff714acf61ba
tree7fd75f13eee0b56bfccea99f18d78bcbe85ba4b8
parentde5a0198b22c36884fd36021d9e4f589b939674f
Optimize session cache flushing

Sort SSL_SESSION structures by timeout in the linked list.
Iterate over the linked list for timeout, stopping when no more
session can be flushed.
Do SSL_SESSION_free() outside of SSL_CTX lock
Update timeout upon use

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8687)
doc/man3/SSL_CTX_set_session_cache_mode.pod
include/openssl/ssl.h.in
ssl/ssl_asn1.c
ssl/ssl_local.h
ssl/ssl_sess.c
ssl/statem/statem_clnt.c
ssl/statem/statem_srvr.c
test/sslapitest.c