Skip to content

Conversation

@micpapal
Copy link
Member

@micpapal micpapal commented Dec 8, 2025

Description

This PR fixes session route cleanup so that routes are correctly removed when sessions close. In particular the fix introduces a ref count for each route so that if multiple sessions use the same route, the route is removed only if the ref count goes to 0.

The PR improves the testing for P2P application to test 2 sessions in parallel.

fix #1033

Type of Change

  • Bugfix
  • New Feature
  • Breaking Change
  • Refactor
  • Documentation
  • Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

Signed-off-by: Michele Papalini <micpapal@cisco.com>
Signed-off-by: Michele Papalini <micpapal@cisco.com>
Signed-off-by: Michele Papalini <micpapal@cisco.com>
Signed-off-by: Michele Papalini <micpapal@cisco.com>
Signed-off-by: Michele Papalini <micpapal@cisco.com>
Signed-off-by: Michele Papalini <micpapal@cisco.com>
@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed⏩ skippedDec 9, 2025, 2:48 PM

Signed-off-by: Michele Papalini <micpapal@cisco.com>
@micpapal micpapal force-pushed the 1033-correctly-remove-routes-on-session-close branch from 2af8a7d to 4c3568b Compare December 9, 2025 10:53
@micpapal micpapal marked this pull request as ready for review December 9, 2025 10:53
@micpapal micpapal requested a review from a team as a code owner December 9, 2025 10:53
@micpapal micpapal changed the title fix: correctly remove routes on session close fix(session): correctly remove routes on session close Dec 9, 2025
@micpapal micpapal self-assigned this Dec 9, 2025
Copy link
Member

@msardara msardara left a comment

Choose a reason for hiding this comment

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

LGTM

micpapal and others added 2 commits December 9, 2025 15:48
Co-authored-by: Mauro Sardara <msardara@cisco.com>
Signed-off-by: Michele Papalini <49271675+micpapal@users.noreply.github.com>
Co-authored-by: Mauro Sardara <msardara@cisco.com>
Signed-off-by: Michele Papalini <49271675+micpapal@users.noreply.github.com>
@micpapal micpapal merged commit cf171dd into release/slim-bindings-v0.7.x Dec 9, 2025
39 of 40 checks passed
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.

3 participants