Skip to content

Commit 6701881

Browse files
committed
Fix Pool defaults which led to overflow and, by default, discarding all
pooled sessions.
1 parent 65ba13a commit 6701881

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/session.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ class Session_pool
213213
bool m_pool_enable = true;
214214
bool m_pool_closed = false;
215215
size_t m_max = 25;
216-
duration m_timeout = duration::max();
217-
duration m_time_to_live = duration::max();
216+
duration m_timeout = std::chrono::minutes(10);
217+
duration m_time_to_live = std::chrono::minutes(10);
218218

219219
class Black_list
220220
{

0 commit comments

Comments
 (0)