Sessions are now wiped after the disconnect timeout, if denied access
This commit is contained in:
parent
9ddfa97148
commit
b9f60ac92c
1 changed files with 5 additions and 1 deletions
|
@ -253,8 +253,12 @@ void Controller::SharedMemStats(void * config){
|
||||||
unsigned long long cutOffPoint = Util::epoch() - STAT_CUTOFF;
|
unsigned long long cutOffPoint = Util::epoch() - STAT_CUTOFF;
|
||||||
unsigned long long disconnectPoint = Util::epoch() - STATS_DELAY;
|
unsigned long long disconnectPoint = Util::epoch() - STATS_DELAY;
|
||||||
for (std::map<sessIndex, statSession>::iterator it = sessions.begin(); it != sessions.end(); it++){
|
for (std::map<sessIndex, statSession>::iterator it = sessions.begin(); it != sessions.end(); it++){
|
||||||
it->second.wipeOld(cutOffPoint);
|
|
||||||
it->second.ping(it->first, disconnectPoint);
|
it->second.ping(it->first, disconnectPoint);
|
||||||
|
if (it->second.sync == 100){
|
||||||
|
it->second.wipeOld(disconnectPoint);
|
||||||
|
}else{
|
||||||
|
it->second.wipeOld(cutOffPoint);
|
||||||
|
}
|
||||||
if (!it->second.hasData()){
|
if (!it->second.hasData()){
|
||||||
mustWipe.push_back(it->first);
|
mustWipe.push_back(it->first);
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Add table
Reference in a new issue