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

Method purge_keepalives

src/proxy/http/HttpSessionManager.cc:342–351  ·  view source on GitHub ↗

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?

Source from the content-addressed store, hash-verified

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?
342void
343HttpSessionManager::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
353HSMresult_t
354HttpSessionManager::acquire_session(HttpSM *sm, sockaddr const *ip, const char *hostname, ProxyTransaction *ua_txn)

Callers 1

do_http_server_openMethod · 0.80

Calls 2

this_ethreadFunction · 0.85
purgeMethod · 0.80

Tested by

no test coverage detected