| 570 | } |
| 571 | |
| 572 | void |
| 573 | ServerSessionPool::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 | } |
no test coverage detected