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

Method insertSession

src/iocore/net/SSLSessionCache.cc:113–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void
114SSLSessionCache::insertSession(const SSLSessionID &sid, SSL_SESSION *sess, SSL *ssl)
115{
116 uint64_t hash = sid.hash();
117 uint64_t target_bucket = hash % nbuckets;
118 SSLSessionBucket *bucket = &session_bucket[target_bucket];
119
120 if (dbg_ctl_ssl_session_cache_insert.on()) {
121 char buf[sid.len * 2 + 1];
122 sid.toString(buf, sizeof(buf));
123 DbgPrint(dbg_ctl_ssl_session_cache_insert,
124 "SessionCache using bucket %" PRId64 " (%p): Inserting session '%s' (hash: %" PRIX64 ").", target_bucket, bucket, buf,
125 hash);
126 }
127
128 bucket->insertSession(sid, sess, ssl);
129}
130
131void
132SSLSessionBucket::insertSession(const SSLSessionID &id, SSL_SESSION *sess, SSL *ssl)

Callers 2

ssl_new_cached_sessionFunction · 0.80
TSSslSessionInsertFunction · 0.80

Calls 15

incrementFunction · 0.85
buffer_size_to_indexFunction · 0.85
SSLGetCurveNIDFunction · 0.85
owns_lockMethod · 0.80
hashMethod · 0.45
onMethod · 0.45
toStringMethod · 0.45
lockMethod · 0.45
findMethod · 0.45
endMethod · 0.45
unlockMethod · 0.45
block_sizeMethod · 0.45

Tested by

no test coverage detected