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

Method addSession

src/proxy/http/HttpSessionManager.cc:572–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572void
573ServerSessionPool::addSession(PoolableSession *ss)
574{
575 EThread *ethread = this_ethread();
576 SCOPED_MUTEX_LOCK(lock, mutex, ethread);
577 // put it in the pools.
578 m_ip_pool.insert(ss);
579 m_fqdn_pool.insert(ss);
580
581 if (dbg_ctl_http_ss.on()) {
582 char peer_ip[INET6_ADDRPORTSTRLEN];
583 ats_ip_nptop(ss->get_remote_addr(), peer_ip, sizeof(peer_ip));
584 Dbg(dbg_ctl_http_ss, "[%" PRId64 "] [add session] session placed into shared pool under ip %s", ss->connection_id(), peer_ip);
585 }
586
587 Metrics::Gauge::increment(http_rsb.pooled_server_connections);
588}

Callers 2

releaseSessionMethod · 0.95
add_sessionMethod · 0.80

Calls 7

this_ethreadFunction · 0.85
incrementFunction · 0.85
ats_ip_nptopFunction · 0.50
insertMethod · 0.45
onMethod · 0.45
get_remote_addrMethod · 0.45
connection_idMethod · 0.45

Tested by

no test coverage detected