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: delays maybeOutputStatus in end event handler a bit #2315

Closed
wants to merge 1 commit into from

Conversation

chessl
Copy link

@chessl chessl commented Jan 8, 2023

Fix some edge cases that the process.nextTick in push function hasn't been processed yet while the end stream event kicks in, which updates statusOutput causing the last chunk of data desserted.

Fix some edge cases that the process.nextTick in push function
hasn't been processed yet while the end stream event kicks in, which
updates statusOutput causing the last chunk of data desserted.
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 8, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: chessl / name: Chess Luo (6f8156b)

@murgatroid99
Copy link
Member

I see the issue but I don't think this is the right way to fix it. process.nextTick will not necessarily ensure the ordering we want. It's better to do it explicitly. I have a change in #2316 to do that.

@murgatroid99
Copy link
Member

The change I made in the PR I linked has been published in version 1.8.2. That change supersedes this one so I'm closing this PR.

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.

2 participants