p2sr / SourceAutoRecord

Speedrun plugin for Source engine games.
MIT License
89 stars 27 forks source link

Auto-updater GitHub API rate-limit #225

Closed ThisAMJ closed 2 months ago

ThisAMJ commented 2 months ago

After opening Portal 2 many times quickly, it will start to crash upon loading SAR. This is because sar_update queries GitHub's API, for which there is a rate-limit of 60/hr, and the response is unhandled. Instead it should catch, and perhaps not query for updates automatically for an hour or two after checking once? (how would it remember across game restarts?)

This really is only relevant when testing bruteforcing and the like, where multiple instances can very quickly reach the rate limit.