100ms fixed timeout when QoS=2 (bad performances) [message #1782340] |
Thu, 22 February 2018 02:02  |
Eclipse User |
|
|
|
Hi,
in my project I need to publish messages with high frequency. The publish result must be synchronous, to retry the publish later in case of issues.
For this reason I am using the parameters QoS=2 and Reliable=true (message queue size equal to 1).
With this configuration Paho sends messages with a frequency of 10 messages/second (see attached wiresharkSnapshot.png). The issue seems to be related to the "timeout" const in MQTTClient_yield(), called by MQTTClient_publish function.
I tried to reduce the value to 10ms and the delay disappear, apparently without introducing drawbacks.
Do you have any suggestion about how to avoid the issue and if we can set the value to 10ms without side effects?
For reproducibility, I attached the code snippet which cause the issue.
Thanks,
Lorenzo
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05050 seconds