This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new ddba8b5 Track SSL session cache evictions performed due to full bucket
ddba8b5 is described below
commit ddba8b5895ec47bf217931e98f4930ccfb8dcbbb
Author: Valentin Gutierrez <[email protected]>
AuthorDate: Wed Sep 11 13:43:55 2019 +0000
Track SSL session cache evictions performed due to full bucket
(cherry picked from commit a62e5f98763bd29bf68318cb55a2ddc1ec189a1b)
---
iocore/net/SSLSessionCache.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/iocore/net/SSLSessionCache.cc b/iocore/net/SSLSessionCache.cc
index 9ba73bc..8c80389 100644
--- a/iocore/net/SSLSessionCache.cc
+++ b/iocore/net/SSLSessionCache.cc
@@ -142,6 +142,9 @@ SSLSessionBucket::insertSession(const SSLSessionID &id,
SSL_SESSION *sess)
PRINT_BUCKET("insertSession before")
if (queue.size >=
static_cast<int>(SSLConfigParams::session_cache_max_bucket_size)) {
+ if (ssl_rsb) {
+ SSL_INCREMENT_DYN_STAT(ssl_session_cache_eviction);
+ }
removeOldestSession();
}