Skip to content

Commit

Permalink
[eclipse-iceoryx#361] Add timeout to publisher data segment opening
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenpiff committed Aug 30, 2024
1 parent 475ccb3 commit 0fa74dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iceoryx2/src/port/details/publisher_connections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ impl<Service: service::Service> Connection<Service> {
when <Service::SharedMemory as SharedMemory<PoolAllocator>>::
Builder::new(&data_segment_name(&details.publisher_id))
.config(&data_segment_config::<Service>(this.service_state.shared_node.config()))
.timeout(this.service_state.shared_node.config().global.service.creation_timeout)
.open(),
"{} since the publishers data segment could not be mapped into the process.", msg);
"{} since the publishers data segment could not be opened.", msg);

Ok(Self {
receiver,
Expand Down

0 comments on commit 0fa74dc

Please sign in to comment.