scenevr / server

:heart_eyes: Create multiuser 3d environments using html-like tags and javascript
http://www.scenevr.com/
BSD 3-Clause "New" or "Revised" License
144 stars 19 forks source link

Prevent more than MAX_CLIENT simultaneous clients #30

Closed bnolan closed 9 years ago

bnolan commented 9 years ago

If more than MAX_CLIENT connections, put further connections into a queue. Notify queued connections how many clients are ahead of them in the queue every few seconds. Once a connected client disconnects, connect the first client in the queue.

bnolan commented 9 years ago

I've decided to do this on a per-server basis, not per scene. This has the unfortunate side effect of putting people back in the queue when they move from one scene to the next if the server is heavily loaded.