diff --git a/src/cpp/SingletonManager/SessionManager.cpp b/src/cpp/SingletonManager/SessionManager.cpp index 17b7ee5e8..c4cbc57df 100644 --- a/src/cpp/SingletonManager/SessionManager.cpp +++ b/src/cpp/SingletonManager/SessionManager.cpp @@ -289,8 +289,8 @@ void SessionManager::checkTimeoutSession() mWorkingMutex.lock(); auto now = Poco::DateTime(); // random variance within 10 seconds for timeout to make it harder to get information and hack the server - //auto timeout = Poco::Timespan(ServerConfig::g_SessionTimeout * 60, randombytes_random() % 10000000); - auto timeout = Poco::Timespan(1, 0); + auto timeout = Poco::Timespan(ServerConfig::g_SessionTimeout * 60, randombytes_random() % 10000000); + //auto timeout = Poco::Timespan(1, 0); std::stack toRemove; for (auto it = mRequestSessionMap.begin(); it != mRequestSessionMap.end(); it++) { if (!it->second->isActive()) continue;