zenoh-c icon indicating copy to clipboard operation
zenoh-c copied to clipboard

[Bug] When using unixpipe transport, killing an application stops remote applications.

Open OlivierHecart opened this issue 11 months ago • 1 comments

Describe the bug

When using unixpipe transport, killing an application stops remote applications.

To reproduce

  1. Build examples with unixpipe feature. mkdir build cd build cmake .. -DZENOHC_CARGO_FLAGS="--features=zenoh/transport_unixpipe" cmake --build . --target examples
  2. Start z_sub with unixpipe listening endpoint. ./target/release/examples/z_sub "demo/example/**" "[\"unixpipe/test.pipe\"]"
  3. Start z_pub with unixpipe connect endpoint. ./target/release/examples/z_pub "demo/example/zenoh-c-pub" "Pub from C" 0 "[\"unixpipe/test.pipe\"]"
  4. Kill z_pub
  5. z_sub exits.

System info

  • Platform: MacOS
  • CPU: M2
  • zenoh-c version: commit bd0fe98772b7d65e8fb71eb0369d7c85c9b09c73

OlivierHecart avatar Mar 21 '24 14:03 OlivierHecart

I think we need to investigate the pipe spec on it's behavior when other pipe end closes. That might be the reason of this bug.

yellowhatter avatar Mar 21 '24 14:03 yellowhatter