| 61 | } |
| 62 | |
| 63 | void |
| 64 | ServerSessionPool::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 | |
| 73 | bool |
| 74 | ServerSessionPool::match(PoolableSession *ss, sockaddr const *addr, CryptoHash const &hostname_hash, |
no test coverage detected