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

Add weak references #510

Merged
merged 20 commits into from
Jul 10, 2024
Merged

Conversation

jean-roland
Copy link
Contributor

Trying to fix #476, I realised the session reference itself was dropped by the refcount which means the query has no way of knowing if the session is still valid.

A possible solution is to introduce weak references. The query having a session weak references, it would be able to check the session validity before the whole rc container is dropped.

Bonus: Working on this, I realized the z_clone was not working properly and there was a consolidation mode edge case when receiving replies.

@jean-roland jean-roland marked this pull request as ready for review July 8, 2024 10:17
@jean-roland jean-roland force-pushed the ft_query_reply branch 4 times, most recently from 4e11588 to 4cd4404 Compare July 9, 2024 11:06
@gabrik gabrik merged commit bc8735f into eclipse-zenoh:dev/1.0.0 Jul 10, 2024
50 checks passed
@jean-roland jean-roland deleted the ft_query_reply branch July 11, 2024 08:19
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.

3 participants