Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve cloud variable backoff logic
Our cloud variable server refuses connections when there are too many people in the same room. The client does have backoff logic, however that backoff counter is being reset when the connection is initially opened, even if the connection is immediately closed for being over capacity. These way these interact gives a spectacular failure case. Say that there's 2000 people playing a project with cloud variables. Let's say that about 100 of them are let in. The other 1900 clients will be constantly opening connections, trying to get in. Those numbers are made up but it should illustrate the problem. To fix this we'll wait a bit before resetting the backoff counter, to make sure that the server didn't refuse the connection. There are cleaner ways to fix this problem, but this solution doesn't require protocol changes.
- Loading branch information