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

Method getSessionBuffer

src/iocore/net/SSLSessionCache.cc:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67int
68SSLSessionCache::getSessionBuffer(const SSLSessionID &sid, char *buffer, int &len) const
69{
70 uint64_t hash = sid.hash();
71 uint64_t target_bucket = hash % nbuckets;
72 SSLSessionBucket *bucket = &session_bucket[target_bucket];
73
74 return bucket->getSessionBuffer(sid, buffer, len);
75}
76
77bool
78SSLSessionCache::getSession(const SSLSessionID &sid, SSL_SESSION **sess, ssl_session_cache_exdata **data) const

Callers 1

TSSslSessionGetBufferFunction · 0.80

Calls 8

incrementFunction · 0.85
owns_lockMethod · 0.80
memcpyFunction · 0.50
hashMethod · 0.45
lockMethod · 0.45
findMethod · 0.45
endMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected