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

Method add_session

src/proxy/http2/Http2ServerSession.cc:340–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340void
341Http2ServerSession::add_session()
342{
343 if (this->in_session_table) {
344 return;
345 }
346 Http2SsnDebug("Add session to pool");
347 EThread *ethread = this_ethread();
348 ServerSessionPool *pool = ethread->server_session_pool;
349 MUTEX_TRY_LOCK(lock, pool->mutex, ethread);
350 if (lock.is_locked()) {
351 pool->addSession(this);
352 this->in_session_table = true;
353 }
354}
355
356void
357Http2ServerSession::remove_session()

Callers 2

new_connectionMethod · 0.95
delete_streamMethod · 0.45

Calls 2

this_ethreadFunction · 0.85
addSessionMethod · 0.80

Tested by

no test coverage detected