| 338 | } |
| 339 | |
| 340 | void |
| 341 | Http2ServerSession::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 | |
| 356 | void |
| 357 | Http2ServerSession::remove_session() |
no test coverage detected