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

Use session weak in user owned entities #636

Merged
merged 5 commits into from
Sep 10, 2024

Conversation

jean-roland
Copy link
Contributor

@jean-roland jean-roland commented Sep 10, 2024

User owned subscribers, queryables and publishers now only holds a weak reference to sessions. That avoids the session not dropping until those are dropped.

It is necessary for background declaration (#626) .

The side-effect is that now a publisher_put / publisher_delete will fail and return an error if the session has been dropped beforehand.

Copy link

PR missing one of the required labels: {'internal', 'new feature', 'breaking-change', 'documentation', 'enhancement', 'dependencies', 'bug'}

@jean-roland jean-roland added enhancement Things could work better api sync Synchronize API with other bindings labels Sep 10, 2024
@milyin milyin merged commit 2ab9562 into eclipse-zenoh:main Sep 10, 2024
53 checks passed
@jean-roland jean-roland deleted the ft_session_weak branch September 10, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api sync Synchronize API with other bindings enhancement Things could work better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants