Skip to content

Conversation

@anarthal
Copy link
Collaborator

@anarthal anarthal commented Jan 6, 2026

Adds the concept of a "temporary working area" to flat_tree. Nodes in this area belong to a partially parsed message, and are hidden from the user. Now flat_tree can be used as the receive response without explicitly handling partial messages.
Changes flat_tree::get_view return type from const vector& to span.
Adds flat_tree::capacity.
Splits generic_flat_response tests to a separate file and adds extra cases.

close #369

@anarthal
Copy link
Collaborator Author

anarthal commented Jan 6, 2026

This doesn't change flat_tree to a container (will do as a separate PR) but addresses the race condition issue.

@anarthal
Copy link
Collaborator Author

anarthal commented Jan 7, 2026

Merging per Marcelo's request.

@anarthal anarthal merged commit 3b07119 into boostorg:develop Jan 7, 2026
17 checks passed
@anarthal anarthal deleted the feature/incomplete-msg-flat-tree branch January 7, 2026 08:55
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.

async_receive2: race conditions on incomplete messages

1 participant