mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
change back timeout
This commit is contained in:
parent
1f2a832e37
commit
f7f8d48c92
@ -289,8 +289,8 @@ void SessionManager::checkTimeoutSession()
|
|||||||
mWorkingMutex.lock();
|
mWorkingMutex.lock();
|
||||||
auto now = Poco::DateTime();
|
auto now = Poco::DateTime();
|
||||||
// random variance within 10 seconds for timeout to make it harder to get information and hack the server
|
// 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(ServerConfig::g_SessionTimeout * 60, randombytes_random() % 10000000);
|
||||||
auto timeout = Poco::Timespan(1, 0);
|
//auto timeout = Poco::Timespan(1, 0);
|
||||||
std::stack<int> toRemove;
|
std::stack<int> toRemove;
|
||||||
for (auto it = mRequestSessionMap.begin(); it != mRequestSessionMap.end(); it++) {
|
for (auto it = mRequestSessionMap.begin(); it != mRequestSessionMap.end(); it++) {
|
||||||
if (!it->second->isActive()) continue;
|
if (!it->second->isActive()) continue;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user