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

Method purge

src/proxy/http/HttpSessionManager.cc:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void
64ServerSessionPool::purge()
65{
66 // @c do_io_close can free the instance which clears the intrusive links and breaks the iterator.
67 // Therefore @c do_io_close is called on a post-incremented iterator.
68 m_ip_pool.apply([](PoolableSession *ssn) -> void { ssn->do_io_close(); });
69 m_ip_pool.clear();
70 m_fqdn_pool.clear();
71}
72
73bool
74ServerSessionPool::match(PoolableSession *ss, sockaddr const *addr, CryptoHash const &hostname_hash,

Callers 1

purge_keepalivesMethod · 0.80

Calls 3

applyMethod · 0.45
do_io_closeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected