Skip to content

Fix Session::close timeout while client attempts to reconnect #2012

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 24, 2025

Conversation

oteffahi
Copy link
Contributor

Calls to runtime.start_client() can block depending on status of endpoint and its protocol. This blocking behavior was causing the session to timeout in certain scenarios. This PR fixes this issue by including the call to runtime.start_client() into the select! on the cancellation token.

Copy link

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

@oteffahi oteffahi requested review from wyfo and OlivierHecart June 24, 2025 12:55
@oteffahi oteffahi added the bug Something isn't working label Jun 24, 2025
Copy link

codecov bot commented Jun 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.98%. Comparing base (ffbe455) to head (9142820).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2012      +/-   ##
==========================================
- Coverage   71.03%   70.98%   -0.05%     
==========================================
  Files         367      367              
  Lines       61866    61869       +3     
==========================================
- Hits        43944    43917      -27     
- Misses      17922    17952      +30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@oteffahi oteffahi requested a review from wyfo June 24, 2025 14:45
@sashacmc sashacmc merged commit 252f6a8 into eclipse-zenoh:main Jul 24, 2025
32 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants