Skip to content

Commit

Permalink
Revert and increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Feb 8, 2024
1 parent 6221d69 commit 8ed38aa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 23 deletions.
40 changes: 18 additions & 22 deletions io/zenoh-links/zenoh-link-tcp/src/unicast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,28 +146,24 @@ impl LinkUnicastTrait for LinkUnicastTcp {

#[inline(always)]
fn get_interface_names(&self) -> Vec<String> {
zenoh_util::net::get_interface_names_by_addr(self.src_addr.ip()).ok();
/*
match zenoh_util::net::get_interface_names_by_addr(self.src_addr.ip()) {
Ok(interfaces) => {
log::trace!(
"get_interface_names for {:?}: {:?}",
self.src_addr.ip(),
interfaces
);
interfaces
}
Err(e) => {
log::debug!(
"get_interface_names for {:?} failed: {:?}",
self.src_addr.ip(),
e
);
vec![]
}
}
*/
vec![]
match zenoh_util::net::get_interface_names_by_addr(self.src_addr.ip()) {
Ok(interfaces) => {
log::trace!(
"get_interface_names for {:?}: {:?}",
self.src_addr.ip(),
interfaces
);
interfaces
}
Err(e) => {
log::debug!(
"get_interface_names for {:?} failed: {:?}",
self.src_addr.ip(),
e
);
vec![]
}
}
}

#[inline(always)]
Expand Down
2 changes: 1 addition & 1 deletion io/zenoh-transport/tests/unicast_intermittent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ use zenoh_transport::{

const MSG_SIZE: usize = 8;
const MSG_COUNT: usize = 100_000;
const TIMEOUT: Duration = Duration::from_secs(300);
const TIMEOUT: Duration = Duration::from_secs(3000);
const SLEEP: Duration = Duration::from_millis(100);
const USLEEP: Duration = Duration::from_millis(1);

Expand Down

0 comments on commit 8ed38aa

Please sign in to comment.