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: Properly exit SimpleExecuteQueryStream on stream end #2243

Merged
merged 3 commits into from
Dec 11, 2023

Conversation

scsmithr
Copy link
Member

Closes #2242

Also moves the simple stuff to its own module to split up the code a little bit.

Closes #2242

Also moves the simple stuff to its own module to split up the code a little bit.

// Stream completed without error, return success to the client.
Poll::Ready(None) => {
self.done = true; // Make sure we properly signal stream end on next poll.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix. Adds a bool so that next poll of this stream (no the inner stream) we exit.

@scsmithr scsmithr requested a review from vrongmeal December 11, 2023 13:25
@scsmithr scsmithr enabled auto-merge (squash) December 11, 2023 16:47
@scsmithr scsmithr merged commit 3382a22 into main Dec 11, 2023
10 checks passed
@scsmithr scsmithr deleted the sean/fix-simple branch December 11, 2023 17:06
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.

Simple query stream doesn't EOF properly
2 participants