spring / uberserver

uberserver, a matchmaking/chat lobby server for the spring rts project
https://springrts.com/wiki/Uberserver
Other
33 stars 38 forks source link

add cleanup x times a day #263

Closed abma closed 5 years ago

abma commented 6 years ago

just a workarround for an other issue, but... :-|

abma commented 6 years ago

these checks already exists: i guess its best to not allow to reconnect very fast (which seems to causes issues with duplicate users)

abma commented 6 years ago

for the beginning: 5 seconds?!

abma commented 6 years ago

better: run it daily

silentwings commented 6 years ago

what about having two cleanup functions, internally?

one that runs daily and does generic cleaning up the db tasks (deleting expired bans/verifications, unwanted user accounts, checking for new spring versions, etc)

one that runs only at CLEANUP and does stuff that we think helps with unfixed bugs/crashes, plus calls the first one

abma commented 6 years ago

+1 ;-)

silentwings commented 6 years ago

I'm not sure where is best to trigger a daily task from (if anywhere).

Edit: found it