| 549 | } |
| 550 | |
| 551 | void |
| 552 | ServerSessionPool::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 | |
| 572 | void |
| 573 | ServerSessionPool::addSession(PoolableSession *ss) |
no test coverage detected