Skip to content

Make sure that UDP transports remain open when UDP listener is closed #1859

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

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

OlivierHecart
Copy link
Contributor

No description provided.

Copy link

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

@OlivierHecart OlivierHecart added the enhancement Existing things could work better label Mar 26, 2025
@OlivierHecart OlivierHecart requested a review from Mallets March 26, 2025 16:14
Copy link

codecov bot commented Mar 26, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
464 1 463 0
View the top 1 failed test(s) by shortest run time
zenoh-transport::unicast_transport::transport_unicast_ws_only_with_lowlatency_transport::case_3
Stack Traces | 65.3s run time
thread 'transport_unicast_ws_only_with_lowlatency_transport::case_3' panicked at io\zenoh-transport\tests\unicast_transport.rs:445:5:
called `Result::unwrap()` on an `Err` value: Elapsed(())
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

let result = ztimeout!(client_manager.open_transport_unicast(e.clone()));
assert!(result.is_err());
// Short timeout for connectionless protocols like udp and quick
let x = tokio::time::timeout(
Copy link
Member

@Mallets Mallets Mar 28, 2025

Choose a reason for hiding this comment

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

If it should fail and we are expecting a different timeout, I rather change the timeout in the config.
The expected error should be clear and not ambiguous.

E.g., I would rather explicitly set the open_timeout config parameter to ensure the timeout happens internally and the open_transport_unicast() returns an error.

open_timeout: 10000,

@OlivierHecart OlivierHecart force-pushed the dev/udp_del_listener branch from c45e7c4 to 9c36155 Compare April 8, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Existing things could work better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants