Only send live checks when the connection has been silent for a while.

Also:
* Made the timeout configurable
* Removed the stale randomcharacters config option
* Switched to time_t for time values, even though it doesn't really
matter that much
* Halved the keepAliveTimer frequency
This commit is contained in:
2020-09-16 17:45:53 +02:00
parent 501d153894
commit f7571607ba
7 changed files with 25 additions and 20 deletions

View File

@@ -7,6 +7,7 @@ namespace settings {
extern int DBSAVEINTERVAL;
extern int SHARDPORT;
extern std::string SHARDSERVERIP;
extern time_t TIMEOUT;
extern int PLAYERDISTANCE;
extern int NPCDISTANCE;
extern int SPAWN_X;