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: exitIdle asynchronously in QueuePicker, only act in exitIdle if IDLE #1062

Merged
merged 1 commit into from
Oct 2, 2019

Conversation

murgatroid99
Copy link
Member

This should fix #1061. Previously the updateState call in exitIdle could cause infinite recursion if there was a pending call, because the QueuePicker there would call exitIdle again. The change to exitIdle should stop the loop, and the change to the QueuePicker would make the loop non-recursive. It's probably just a good idea in general not to change the load balancer state while checking the picks of pending calls as a result of changing the load balancer state.

@murgatroid99 murgatroid99 merged commit db5c2b0 into grpc:master Oct 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

busyloop in @grpc/grpc-js v0.6.x
2 participants