Skip to content

Conversation

KibbeWater
Copy link
Contributor

When a registered user receives a 401 upon voting, it will generate a new userId and register it.
However, if the server repeatedly returns 401 for the same user every time, the user will get stuck in a voting loop that will spam request to the /vote endpoint and spike the users CPU usage on running solvePuzzle

This change adds a safeguard against this infinite loop edgecase and prevents liking a video to spike the users CPU

@KibbeWater
Copy link
Contributor Author

This PR closes #1153

Copy link
Owner

@Anarios Anarios left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@Anarios Anarios merged commit fc0b0fe into Anarios:main Jul 13, 2025
1 check failed
@Anarios
Copy link
Owner

Anarios commented Jul 13, 2025

I wonder why register fails though.

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

Successfully merging this pull request may close these issues.

2 participants