TODO: Should this really purge all keep-alive sessions? Does this make any sense, since we always do the global pool and not the per thread?
| 340 | // TODO: Should this really purge all keep-alive sessions? |
| 341 | // Does this make any sense, since we always do the global pool and not the per thread? |
| 342 | void |
| 343 | HttpSessionManager::purge_keepalives() |
| 344 | { |
| 345 | EThread *ethread = this_ethread(); |
| 346 | |
| 347 | MUTEX_TRY_LOCK(lock, m_g_pool->mutex, ethread); |
| 348 | if (lock.is_locked()) { |
| 349 | m_g_pool->purge(); |
| 350 | } // should we do something clever if we don't get the lock? |
| 351 | } |
| 352 | |
| 353 | HSMresult_t |
| 354 | HttpSessionManager::acquire_session(HttpSM *sm, sockaddr const *ip, const char *hostname, ProxyTransaction *ua_txn) |
no test coverage detected