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
|
@ -338,6 +338,7 @@ extern struct player *player_next(struct player *);
|
|||
extern struct player *player_prev(struct player *);
|
||||
extern struct player *getplayer(natid);
|
||||
extern void player_accept(void *);
|
||||
extern time_t player_io_deadline(struct player *, int);
|
||||
/* dispatch.c */
|
||||
extern int dispatch(char *, char *);
|
||||
/* empdis.c */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue