Separate login_grace_time from max_idle
max_idle applies in state PS_PLAYING, login_grace_time before (login, state PS_INIT) and after (logout, state PS_SHUTDOWN). Cut login_grace_time to two minutes, from max_idle's 15. Two minutes is plenty to complete login and logout. Makes swamping the server with connections slightly harder, as they get dropped faster. While that makes sense all by itself, the real aim is making increasing max_idle safe. The next commit will complete that job.
This commit is contained in:
parent
fb9595fe6a
commit
1a97cc3cfd
7 changed files with 23 additions and 19 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* Known contributors to this file:
|
||||
* Marc Olzheim, 2004
|
||||
* Markus Armbruster, 2004-2011
|
||||
* Markus Armbruster, 2004-2012
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -200,6 +200,8 @@ EMPCFBOTH("max_btus", max_btus, int, NSC_INT, 0,
|
|||
"Maximum number of BTUs a country can have")
|
||||
EMPCFBOTH("max_idle", max_idle, int, NSC_INT, 0,
|
||||
"Maximum number of minutes a player can sit idle while logged in")
|
||||
EMPCFBOTH("login_grace_time", login_grace_time, int, NSC_INT, 0,
|
||||
"Grace time for clients to complete login and logout (seconds)")
|
||||
EMPCFBOTH("players_at_00", players_at_00, int, NSC_INT, 0,
|
||||
"Players have their coordinate system at deity 0,0 (0 - no, 1 - yes)")
|
||||
EMPCFBOTH("at_least_one_100", at_least_one_100, int, NSC_INT, KM_INTERNAL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue