Skip to content
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

Fix the open_ack bug #601

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions io/zenoh-transport/src/unicast/establishment/accept.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,18 +628,19 @@ pub(crate) async fn accept_link(link: &LinkUnicast, manager: &TransportManager)
is_lowlatency: state.ext_lowlatency.is_lowlatency(),
};

let transport = step!(
manager
.init_transport_unicast(config, link.clone(), LinkUnicastDirection::Inbound)
.await
);

// Send the open_ack on the link
step!(link
.send(&oack_out.open_ack.into())
.await
.map_err(|e| (e, Some(close::reason::GENERIC))));

// init the transport
let transport = step!(
manager
.init_transport_unicast(config, link.clone(), LinkUnicastDirection::Inbound)
.await
);

// Sync the RX sequence number
let _ = step!(transport
.get_inner()
Expand Down
Loading