X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=doc%2Fssl%2FSSL_CTX_sess_set_cache_size.pod;h=4aeda096d66b120401ed02b306e2ac830a3493e8;hb=c477f8e7165d30c5c8ca98f7409714f56dc2048c;hp=d59a7db636a8b0fee35f4b97269ac8f1e275909b;hpb=41ecaba97edbf3439ae43d4cf9552a9fcef1fb02;p=oweals%2Fopenssl.git diff --git a/doc/ssl/SSL_CTX_sess_set_cache_size.pod b/doc/ssl/SSL_CTX_sess_set_cache_size.pod index d59a7db636..4aeda096d6 100644 --- a/doc/ssl/SSL_CTX_sess_set_cache_size.pod +++ b/doc/ssl/SSL_CTX_sess_set_cache_size.pod @@ -15,6 +15,7 @@ SSL_CTX_sess_set_cache_size, SSL_CTX_sess_get_cache_size - manipulate session ca SSL_CTX_sess_set_cache_size() sets the size of the internal session cache of context B to B. +This value is a hint and not an absolute; see the notes below. SSL_CTX_sess_get_cache_size() returns the currently valid session cache size. @@ -25,9 +26,10 @@ currently 1024*20, so that up to 20000 sessions can be held. This size can be modified using the SSL_CTX_sess_set_cache_size() call. A special case is the size 0, which is used for unlimited size. -When the maximum number of sessions is reached, no more new sessions are -added to the cache. New space may be added by calling -L to remove +If adding the session makes the cache exceed its size, then unused +sessions are dropped from the end of the cache. +Cache space may also be reclaimed by calling +L to remove expired sessions. If the size of the session cache is reduced and more sessions are already @@ -46,6 +48,6 @@ SSL_CTX_sess_get_cache_size() returns the currently valid size. L, L, L, -L +L =cut