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

grpc-js: Fix reentrancy problem in backoff timer callback #2921

Conversation

murgatroid99
Copy link
Member

If runOnce is called by the callback (which does happen in subchannels), it will set running to true before the timer handler sets it to false, resulting in an invalid running state. This change fixes that by resolving the state before calling the callback.

@murgatroid99 murgatroid99 merged commit 5572bbd into grpc:@grpc/grpc-js@1.13.x Mar 11, 2025
3 of 5 checks passed
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.

None yet

2 participants