Open i-and opened 3 weeks ago
Hi @i-and, Thank you for using Fast DDS.
There might be an issue with the data serialization in case the message size is greater than 255 and the extensibility of the message type defined in the .idl is APPENDABLE
, which is by default. I will label it as bug. In the meanwhile, you can still accomplish what you are trying to do, setting the extensibility to FINAL
in the HelloWorld.idl file as follow:
@final
struct HelloWorld
{
unsigned long index;
string message;
};
and regenerate the types with Fast DDS-GEN. If you haven't installed it yet, you can follow the installation instructions and then the usage guide to regenerate types adding the -replace
argument.
Is there an already existing issue for this?
Expected behavior
The sample is successfully sent regardless of its size.
Current behavior
Depending on the size of the sample, the write() method returns an error code.
Steps to reproduce
This error can be reproduced by modifying HelloWorldExample as follows:
Fast DDS version/commit
v2.14.1
Platform/Architecture
Ubuntu Focal 20.04 amd64
Transport layer
Default configuration, UDPv4 & SHM
Additional context
No response
XML configuration file
No response
Relevant log output
Network traffic capture
No response