string max length

2 posts / 0 new
Last post
Offline
Last seen: 1 year 7 months ago
Joined: 01/10/2022
Posts: 14
string max length

In the GettingStartedGuide, it is mentioned that if the forceUnboundedString flag is set to true, the maximum length of the string that can be sent is 2,147,483,647. However, in my actual testing, I found that the maximum size of the string that can be sent is about 65,000 bytes, and subscribers will not receive data if it exceeds this size. Why?

 

Ismael Mendez's picture
Offline
Last seen: 7 months 1 week ago
Joined: 07/03/2017
Posts: 74

Hi yugonghui,

This can be a resource limit configuration or a network issue. What QoS are you using? Can you try suing the builtin profile "BuiltinQosLibExp::Generic.Participant.LargeData"? Please have a look at this post. And also the Chapter 20 "Sample and Instance Memory Management" of the Connext DDS User's manual.

The other possibility is a network issue. The UDP limit is 64K. It might be happening something with the packet fragmentation.

Do you see something in the Administration Panel if you enable the core notifications in the writer and reader sides?