Tweak CNShared

* Separate pruning frequency from timeout
* Pluralize CNShared map: login -> logins
* Increase connection timeout to 15 minutes
* Do not deallocate a nullptr in playerEnter()
* Kill connections rejected by playerEnter()
* Remove redundant inclusions of mutex headers in a few places
This commit is contained in:
2022-07-31 03:16:07 +02:00
parent 271eef83d3
commit 2dbe2629c1
4 changed files with 22 additions and 25 deletions

View File

@@ -10,7 +10,11 @@
#include "Player.hpp"
#define CNSHARED_TIMEOUT 30000
/*
* Connecions time out after 15 minutes, checked every 30 seconds.
*/
#define CNSHARED_TIMEOUT 900000
#define CNSHARED_PERIOD 30000
struct LoginMetadata {
uint64_t FEKey;