Skip to content

Commit

Permalink
Let's use ZRuntime::Reception to handle accept_task
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanYuYuan committed Feb 1, 2024
1 parent 052c18c commit a98aaf2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion io/zenoh-links/zenoh-link-quic/src/unicast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ impl LinkManagerUnicastTrait for LinkManagerUnicastQuic {
zasyncwrite!(c_listeners).remove(&c_addr);
res
};
tracker.spawn_on(task, &zenoh_runtime::ZRuntime::TX);
tracker.spawn_on(task, &zenoh_runtime::ZRuntime::Reception);

// Initialize the QuicAcceptor
let locator = endpoint.to_locator();
Expand Down
3 changes: 1 addition & 2 deletions io/zenoh-links/zenoh-link-udp/src/unicast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ impl LinkManagerUnicastTrait for LinkManagerUnicastUdp {
zasyncwrite!(c_listeners).remove(&c_addr);
res
};
tracker.spawn_on(task, &zenoh_runtime::ZRuntime::TX);
tracker.spawn_on(task, &zenoh_runtime::ZRuntime::Reception);

let locator = endpoint.to_locator();
let listener = ListenerUnicastUdp::new(endpoint, token, tracker);
Expand Down Expand Up @@ -612,7 +612,6 @@ async fn accept_read_task(
// tool. In case of systemd-based systems, this can be changed by using the
// "sysctl" command line tool.
tokio::time::sleep(Duration::from_micros(*UDP_ACCEPT_THROTTLE_TIME)).await;
continue;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion io/zenoh-links/zenoh-link-unixsock_stream/src/unicast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ impl LinkManagerUnicastTrait for LinkManagerUnicastUnixSocketStream {
zasyncwrite!(c_listeners).remove(&c_path);
res
};
tracker.spawn_on(task, &zenoh_runtime::ZRuntime::TX);
tracker.spawn_on(task, &zenoh_runtime::ZRuntime::Reception);

let locator = endpoint.to_locator();
let listener = ListenerUnixSocketStream::new(endpoint, token, tracker, lock_fd);
Expand Down
2 changes: 1 addition & 1 deletion io/zenoh-links/zenoh-link-ws/src/unicast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ impl LinkManagerUnicastTrait for LinkManagerUnicastWs {
zasyncwrite!(c_listeners).remove(&c_addr);
res
};
tracker.spawn_on(task, &zenoh_runtime::ZRuntime::TX);
tracker.spawn_on(task, &zenoh_runtime::ZRuntime::Reception);

let locator = endpoint.to_locator();
let listener = ListenerUnicastWs::new(endpoint, token, tracker);
Expand Down

0 comments on commit a98aaf2

Please sign in to comment.