Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix race condition when more than one contestant is typing #3

Open
thijzert opened this issue Dec 25, 2020 · 0 comments
Open

Fix race condition when more than one contestant is typing #3

thijzert opened this issue Dec 25, 2020 · 0 comments

Comments

@thijzert
Copy link
Owner

Though the opportunity is minimal (save for a few for loops, no expensive operations are performed in any of the request handlers), since the quiz state is always saved as a whole, if two contestants are updating their submission concurrently, one will be ignored.

It's probably a good idea to separate each contestant's world in separate parts, and only save one at a time. Or at least employ separate 'dirty' flags for each one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant