Skip to content

Removes async_append_some #283

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

Merged
merged 2 commits into from
Jul 22, 2025
Merged

Removes async_append_some #283

merged 2 commits into from
Jul 22, 2025

Conversation

mzimbres
Copy link
Collaborator

@anarthal Before I start investigating how to proceed with @D0zee PR I would like to merge this one which simplifies how the read buffer is used.

if (!on_push_) // Prepare for new message.
on_push_ = is_next_push();
on_push_ = is_next_push(data);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is likely not something to fix in this PR, but isn't the multiplexer violating point 1. in the comment above? While we're parsing something that's not a push and we run out of data, on_push_ will be false and we will look at the message's first byte even if we shouldn't.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have to review this again and test it. I remember it being trick see comments in is_next_push.

@mzimbres mzimbres force-pushed the refactoring_clean_code branch 3 times, most recently from df2036b to 918889d Compare July 19, 2025 19:50
@mzimbres mzimbres force-pushed the refactoring_clean_code branch from 918889d to 8ee2213 Compare July 20, 2025 16:38
@mzimbres
Copy link
Collaborator Author

@anarthal I think I addressed all your comments. Your other PR will fix the remaining problems.

@anarthal
Copy link
Collaborator

Looks good to me. I'll merge mine after you merge this.

@anarthal anarthal self-requested a review July 22, 2025 14:02
@mzimbres mzimbres merged commit 20ab2c7 into develop Jul 22, 2025
34 checks passed
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