Open vinaybr opened 1 year ago
an update to the issue here, we are seeing messages missed and in some cases received in wrong order. its more frequent in 32bit .net4.8 but happens even on 64bit .Net6.
In mqttnet, the default QoS subscription for a topic is 0. That may explain why you are missing messages or seeing them in an unexpected order. Not having seen a sample of your connection code this is only a guess.
Example ...
var subscriptionOptions = m_mqttFactory.CreateSubscribeOptionsBuilder();
foreach(var topicname in connectionData.TopicsToSubscribeTo) { subscriptionOptions.WithTopicFilter(topicname, MqttQualityOfServiceLevel.ExactlyOnce); }
await m_client.SubscribeAsync(subscriptionOptions.Build(), m_cancel);
I have about 13500 retained messages/topics, but I can receive only 1179. The same number after many runs. I tried change QoS of subscription, nothing. Broker mosquitto.
Client application is missing DataReceived events
Which component is your bug related to?
To Reproduce
Expected behavior
All clients should receive all the messages
Screenshots
-
Additional context / logging