Skip to content

Commit

Permalink
Fix establish failure on shm (#1242)
Browse files Browse the repository at this point in the history
* adopt some SHM data structures to support NPO (needed as elegant way to equalize some data structure sizes in zenoh-c)

* Update commons/zenoh-shm/src/api/provider/types.rs

wyfo's addition

Co-authored-by: Joseph Perez <[email protected]>

* Review fixes

* fix examples

* fiix CI

* fix typo

* review fix

* Do not fail the whole Establish when failing on shm segment check

---------

Co-authored-by: Joseph Perez <[email protected]>
  • Loading branch information
yellowhatter and wyfo authored Jul 18, 2024
1 parent 7f8b854 commit 8529eb6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion io/zenoh-transport/src/unicast/establishment/ext/shm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,13 @@ impl<'a> AcceptFsm for &'a ShmFsm<'a> {
};

// Read Alice's SHM Segment
let alice_segment = AuthSegment::open(init_syn.alice_segment)?;
let alice_segment = match AuthSegment::open(init_syn.alice_segment) {
Ok(buff) => buff,
Err(e) => {
tracing::trace!("{} {}", S, e);
return Ok(None);
}
};

Ok(Some(alice_segment))
}
Expand Down

0 comments on commit 8529eb6

Please sign in to comment.