Skip to content

Implement GH-8641: [Stream] STREAM_NOTIFY_COMPLETED over HTTP never emitted #10505

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

Closed
wants to merge 3 commits into from

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Feb 4, 2023

Closes GH-8641

This adds support for the completed event. Since the read handler could
be entered twice towards the end of the stream we remember what the eof
flag was before reading so we can emit the completed event when the flag
changes to true.

Please note that this depends on the fix in #10492 , otherwise this PR won't work properly.

@nielsdos
Copy link
Member Author

nielsdos commented Feb 4, 2023

Right... So the new test is failing because I didn't include my other PR fix in here... I'll wait until that other PR gets merged and keep this on draft for now, and then rebase it later.

…r emitted

This adds support for the completed event. Since the read handler could
be entered twice towards the end of the stream we remember what the eof
flag was before reading so we can emit the completed event when the flag
changes to true.
@nielsdos nielsdos force-pushed the completed-event branch from b3c23c2 to 38ee90a Compare May 6, 2023 12:38
@nielsdos nielsdos marked this pull request as ready for review May 6, 2023 12:38
@nielsdos nielsdos requested a review from bukka as a code owner May 6, 2023 12:38
@nielsdos
Copy link
Member Author

nielsdos commented May 6, 2023

I rebased this now that the PR this depends on has been merged. I think this is ready for review now.

@nielsdos nielsdos requested a review from bukka May 12, 2023 20:07
Copy link
Member

@bukka bukka left a comment

Choose a reason for hiding this comment

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

I think it looks reasonable. Just some minor comments.

@nielsdos
Copy link
Member Author

Thx for the review, addressed the review comments and asked one question on one of your review comments.

@nielsdos nielsdos requested a review from bukka May 13, 2023 13:52
Copy link
Member

@bukka bukka left a comment

Choose a reason for hiding this comment

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

I just went again through all the logic and all looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Stream] STREAM_NOTIFY_COMPLETED over HTTP never emitted
2 participants