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: don't deadlock on 10+ concurrent requests needing auth #779

Merged
merged 5 commits into from
Apr 3, 2025

Conversation

jenseng
Copy link
Contributor

@jenseng jenseng commented Mar 18, 2025

Fixes #754
Fixes octokit/octokit.js#2800

Give auth requests a dedicated queue. This ensures that they don't cause a deadlock when 10+ concurrent requests are made that need authentication (i.e. either we've never authed, or the token has expired).

@wolfy1339
Copy link
Member

Can you update the PR with octokit/auth-app.js#689

@jenseng jenseng force-pushed the fix-auth-deadlock branch from 22fd013 to 16d260b Compare April 3, 2025 17:09
@jenseng
Copy link
Contributor Author

jenseng commented Apr 3, 2025

Can you update the PR with octokit/auth-app.js#689

Done! I only updated the dev dependency and the test, since it can still work with older versions (just suboptimally). Let me know if we should tweak peerDependencies/etc too

@wolfy1339 wolfy1339 merged commit 54f107e into octokit:main Apr 3, 2025
8 checks passed
Copy link
Contributor

github-actions bot commented Apr 3, 2025

🎉 This PR is included in version 9.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gr2m
Copy link
Contributor

gr2m commented Apr 3, 2025

Great work on adding custom throttling for auth requests 🚀

jonathanmorley added a commit to jonathanmorley/octokit.js that referenced this pull request Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Type: Bug Something isn't working as documented
Projects
None yet
3 participants