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

Method removeSession

src/proxy/http/HttpSessionManager.cc:551–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551void
552ServerSessionPool::removeSession(PoolableSession *to_remove)
553{
554 EThread *ethread = this_ethread();
555 SCOPED_MUTEX_LOCK(lock, mutex, ethread);
556 char peer_ip[INET6_ADDRPORTSTRLEN];
557 if (dbg_ctl_http_ss.on()) {
558 ats_ip_nptop(to_remove->get_remote_addr(), peer_ip, sizeof(peer_ip));
559 Dbg(dbg_ctl_http_ss, "Remove session %p %s m_fqdn_pool size=%zu m_ip_pool_size=%zu", to_remove, peer_ip, m_fqdn_pool.count(),
560 m_ip_pool.count());
561 }
562 m_fqdn_pool.erase(to_remove);
563 m_ip_pool.erase(to_remove);
564 if (dbg_ctl_http_ss.on()) {
565 Dbg(dbg_ctl_http_ss, "After Remove session %p m_fqdn_pool size=%zu m_ip_pool_size=%zu", to_remove, m_fqdn_pool.count(),
566 m_ip_pool.count());
567 }
568
569 Metrics::Gauge::decrement(http_rsb.pooled_server_connections);
570}
571
572void
573ServerSessionPool::addSession(PoolableSession *ss)

Callers 3

acquireSessionMethod · 0.95
eventHandlerMethod · 0.95
remove_sessionMethod · 0.45

Calls 6

this_ethreadFunction · 0.85
ats_ip_nptopFunction · 0.50
onMethod · 0.45
get_remote_addrMethod · 0.45
countMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected