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

Method getSession

src/iocore/net/SSLSessionCache.cc:77–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77bool
78SSLSessionCache::getSession(const SSLSessionID &sid, SSL_SESSION **sess, ssl_session_cache_exdata **data) const
79{
80 uint64_t hash = sid.hash();
81 uint64_t target_bucket = hash % nbuckets;
82 SSLSessionBucket *bucket = &session_bucket[target_bucket];
83
84 if (dbg_ctl_ssl_session_cache.on()) {
85 char buf[sid.len * 2 + 1];
86 sid.toString(buf, sizeof(buf));
87 DbgPrint(dbg_ctl_ssl_session_cache_get, "SessionCache looking in bucket %" PRId64 " (%p) for session '%s' (hash: %" PRIX64 ").",
88 target_bucket, bucket, buf, hash);
89 }
90
91 return bucket->getSession(sid, sess, data);
92}
93
94void
95SSLSessionCache::removeSession(const SSLSessionID &sid)

Callers 2

ssl_get_cached_sessionFunction · 0.45
TSSslSessionGetFunction · 0.45

Calls 9

incrementFunction · 0.85
owns_lockMethod · 0.80
hashMethod · 0.45
onMethod · 0.45
toStringMethod · 0.45
lockMethod · 0.45
findMethod · 0.45
endMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected