MCPcopy Create free account
hub / github.com/apache/trafficserver / removeSession

Method removeSession

src/iocore/net/SSLSessionCache.cc:94–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void
95SSLSessionCache::removeSession(const SSLSessionID &sid)
96{
97 uint64_t hash = sid.hash();
98 uint64_t target_bucket = hash % nbuckets;
99 SSLSessionBucket *bucket = &session_bucket[target_bucket];
100
101 if (dbg_ctl_ssl_session_cache_remove.on()) {
102 char buf[sid.len * 2 + 1];
103 sid.toString(buf, sizeof(buf));
104 DbgPrint(dbg_ctl_ssl_session_cache_remove,
105 "SessionCache using bucket %" PRId64 " (%p): Removing session '%s' (hash: %" PRIX64 ").", target_bucket, bucket, buf,
106 hash);
107 }
108 Metrics::Counter::increment(ssl_rsb.session_cache_eviction);
109
110 bucket->removeSession(sid);
111}
112
113void
114SSLSessionCache::insertSession(const SSLSessionID &sid, SSL_SESSION *sess, SSL *ssl)

Callers 2

ssl_rm_cached_sessionFunction · 0.45
TSSslSessionRemoveFunction · 0.45

Calls 8

incrementFunction · 0.85
hashMethod · 0.45
onMethod · 0.45
toStringMethod · 0.45
findMethod · 0.45
endMethod · 0.45
removeMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected