Each message is sent twice at RTPS layer #4198
Replies: 1 comment 1 reply
-
Hi @kunnalparihar, This is not really an issue. If I encourage you to use |
Beta Was this translation helpful? Give feedback.
-
Hi @kunnalparihar, This is not really an issue. If I encourage you to use |
Beta Was this translation helpful? Give feedback.
-
Is there an already existing issue for this?
Expected behavior
Hello, Thanks for the great work. I am currently using fast DDS to send data from one PC to another.
I used publisher code (Fast-DDS/examples/cpp/dds/HelloWorldExample/HelloWorldPublisher.cpp) to send 10 messages of different sizes.
At the subscriber end, I correctly receive 10 messages. But there is some issue when I check the RTPS layer.
Current behavior
I found that at publisher side, I modified Fast-DDS/src/cpp/rtps/transport/UDPTransportInterface.cpp code to add print (cout) after sending a message.
I added print (cout) inside the below function. I found that for each message from application layer, I see two prints at this function.
It looks like for sending one message, rtps try sending the message to receiver twice.
UDPTransportInterface::send(const octet* send_buffer, uint32_t send_buffer_size, eProsimaUDPSocket& socket, const Locator& remote_locator, bool only_multicast_purpose, bool whitelisted, const std::chrono::microseconds& timeout)
Can you please guide me?
Thank you in advance.
Steps to reproduce
you can some cout at send function inside UDPTransportInterface.cpp code.
Fast DDS version/commit
v2.12.0
Platform/Architecture
Ubuntu Focal 20.04 arm64
Transport layer
UDPv4
Additional context
No response
XML configuration file
No response
Relevant log output
No response
Network traffic capture
No response
Beta Was this translation helpful? Give feedback.
All reactions