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

@@ -9,9 +9,6 @@ verbosity=1
[login]
# must be kept in sync with loginInfo.php
port=8001
# enables two randomly generated characters in the
# character selection menu for convenience
randomcharacters=true
# will all custom names be approved instantly?
acceptallcustomnames=true
# how often should everything be flushed to the database?
@@ -25,6 +22,9 @@ ip=127.0.0.1
# distance at which other players and NPCs become visible
playerdistance=20000
npcdistance=16000
# time, in milliseconds, to wait before kicking a non-responsive client
# default is 1 minute
timeout=60000
# little message players see when they enter the game
motd=Welcome to OpenFusion!
# NPC json data