Skip to content

Conversation

@ndossche
Copy link
Member

@ndossche ndossche 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.

@ndossche
Copy link
Member Author

ndossche 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.
@ndossche ndossche force-pushed the completed-event branch from b3c23c2 to 38ee90a Compare May 6, 2023 12:38
@ndossche ndossche marked this pull request as ready for review May 6, 2023 12:38
@ndossche ndossche requested a review from bukka as a code owner May 6, 2023 12:38
@ndossche
Copy link
Member Author

ndossche 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.

@ndossche ndossche 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.

@ndossche
Copy link
Member Author

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

@ndossche ndossche 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