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

Method print

src/iocore/net/SSLSessionCache.cc:264–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264void inline SSLSessionBucket::print(const char *ref_str) const
265{
266 /* NOTE: This method assumes you're already holding the bucket lock */
267 if (!dbg_ctl_ssl_session_cache_bucket.on()) {
268 return;
269 }
270
271 fprintf(stderr, "-------------- BUCKET %p (%s) ----------------\n", this, ref_str);
272 fprintf(stderr, "Current Size: %ld, Max Size: %zd\n", bucket_map.size(), SSLConfigParams::session_cache_max_bucket_size);
273 fprintf(stderr, "Bucket: \n");
274
275 for (auto &x : bucket_map) {
276 char s_buf[2 * x.second->session_id.len + 1];
277 x.second->session_id.toString(s_buf, sizeof(s_buf));
278 fprintf(stderr, " %s\n", s_buf);
279 }
280}
281
282void inline SSLSessionBucket::removeOldestSession(const std::unique_lock<ts::shared_mutex> &lock)
283{

Callers 13

SNI_IpAllowMethod · 0.45
SNIActionMethod · 0.45
SSLAddressLookupKeyMethod · 0.45
_recv_packetMethod · 0.45
SSLDiags.ccFile · 0.45
GroupMethod · 0.45
equalMethod · 0.45
dumpMethod · 0.45
Note_UnblockedMethod · 0.45
Warn_BlockedMethod · 0.45

Calls 3

onMethod · 0.45
sizeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected