inaimathi / deal

A simple playtesting/prototyping tool for physical card games
GNU Affero General Public License v3.0
4 stars 0 forks source link

Inactive Players/Games #20

Open inaimathi opened 11 years ago

inaimathi commented 11 years ago

Actually only a half-bug.

The server should periodically evict inactive games and/or players. A so that we don't over-report gameplay stats, and B, to free up the admittedly tiny amount of memory required.

inaimathi commented 11 years ago

Really, this means keeping track of the last action a player has taken, and the last action taken in a game, and evicting them after a certain threshold. I could probably add the appropriate hooks for tracking to define-handler and friends, but I'd probably need a separate thread for eviction (Hunchentoot just does a garbage collection trip every few times a session is started. Not sure if that's a valid approach).

inaimathi commented 10 years ago

It seems this'll be made much easier once the server re-write happens. I think I'll save it for after the contest is up.