Skip to content

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
Development

Successfully merging this pull request may close these issues.

[BUG]: Octokit hangs when making 10 parallel requests. global group can deadlock requests if auth is not already cached
3 participants