diff options
author | Todd Short <tshort@akamai.com> | 2019-04-05 14:17:22 -0400 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-06-10 18:32:25 +1000 |
commit | 25959e04c350c2b82d545ea38b18ff714acf61ba (patch) | |
tree | 7fd75f13eee0b56bfccea99f18d78bcbe85ba4b8 /include | |
parent | de5a0198b22c36884fd36021d9e4f589b939674f (diff) |
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)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/ssl.h.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/openssl/ssl.h.in b/include/openssl/ssl.h.in index 2c34fd2a9a..9c00eb3d13 100644 --- a/include/openssl/ssl.h.in +++ b/include/openssl/ssl.h.in @@ -670,6 +670,7 @@ typedef int (*GEN_SESSION_CB) (SSL *ssl, unsigned char *id, # define SSL_SESS_CACHE_NO_INTERNAL_STORE 0x0200 # define SSL_SESS_CACHE_NO_INTERNAL \ (SSL_SESS_CACHE_NO_INTERNAL_LOOKUP|SSL_SESS_CACHE_NO_INTERNAL_STORE) +# define SSL_SESS_CACHE_UPDATE_TIME 0x0400 LHASH_OF(SSL_SESSION) *SSL_CTX_sessions(SSL_CTX *ctx); # define SSL_CTX_sess_number(ctx) \ |