Waitset and Event-Reception #1195
Replies: 1 comment 2 replies
-
|
Hi @JochenSatETAS, I see you are using the test for a tunnel. Is the data going over a real network? I can anticipate a couple of possible reasons. The network communication might introduce some latency between participants. Additionally, the Zenoh backend currently available in open-source has some additional latency due to the fact that Zenoh has a background thread. After the publisher hands the payload (or event) over to Zenoh, it is only transmitted once Zenoh's background thread has been scheduled by the OS and run. Same for receiving data on the other end. One solution would be to configure Zenoh to reduce the latency of the background thread, although I must admit I have not tried it and am not sure if it is possible to do through configuration. Another alternative would be to implement a tunnel backend using a communication mechanism that does not have this issue. This additional latency will not be there when communicating between participants within a single host using the EDIT: I forgot to mention that the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Iceoryx-Team
We were playing around with the test https://github.com/eclipse-iceoryx/iceoryx2/tree/main/iceoryx2-tunnel/end-to-end-tests/ping-pong/src a bit. Here we discovered the following issue:
We let the ponger.rs unchanged and added a loop to the end of the run_pinger function in the pinger.rs. With that we wanted to try out to repeat the ping-pong for hundreds of times in a row.
The thing now is that the pong_subscriber.receive() (line 89 in the pinger) did not always get the event on the first try. We had to put it into a loop to retry until we received the event. The ponger always sends the event first and then the notification, so we were unsure why we were not able to find the event always at the first try.
I'm happy to provide more info if necessary.
Thank you very much for your help!
Beta Was this translation helpful? Give feedback.
All reactions