| 1742 | |
| 1743 | |
| 1744 | void Sessions::add(const SSL& ssl) |
| 1745 | { |
| 1746 | if (ssl.getSecurity().get_connection().sessionID_Set_) { |
| 1747 | Lock guard(mutex_); |
| 1748 | list_.push_back(NEW_YS SSL_SESSION(ssl, random_)); |
| 1749 | count_++; |
| 1750 | } |
| 1751 | |
| 1752 | if (count_ > SESSION_FLUSH_COUNT) |
| 1753 | if (!ssl.getSecurity().GetContext()->GetSessionCacheFlushOff()) |
| 1754 | Flush(); |
| 1755 | } |
| 1756 | |
| 1757 | |
| 1758 | Sessions::~Sessions() |
no test coverage detected