-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscribed Topics not published anymore after one PubAck is missing from Client (Outgoing messages are being dropped to a client) #3188
Comments
What is your server configuration especially regarding |
Dear all, it is not only the "$Sys" message. I now analyzed my traffic with wireshark. The client itself, can publish topics and they will be answered by the server. To came out of this situation, I have to restart the mosquitto service, or the disconnect and connect the client again. I definitly think, this is a bug. A not answered message can happen all the time. Attached you will see a short time frame of my wireshark. The problem will be at No. 67076. Mosquitto version is 2.0.20, but this issue was also seen on 2.0.18. max_queued_messages is default 1000 Yes, I use different ClientIDs, but it happend also with exactly one client. |
Sorry, but if you only use QoS 0, there is no PUBACK as a response to a PUBLISH. The attached .zip file is corrupt. But anyhow, mosquitto seems to work according to the standard definition Flow Control. Why does your client not answer the PUBLISH with a PUBACK? Which client library do you use? |
Sorry, my mistake. I subscribed with QoS1 , thats why an puback is coming. There should be at least a request to Reset (i think thats not in the protocoll), or a forced disconnect. |
Well, this is the way MQTT is defined:
If your client is not able to send PUBACK, it should disconnect and reconnect. All not PUBACKed messages will be resent by the broker |
Dear Support,
i have three clients connected to a mosquitto mqtt broker. One of the client is the "master". There is also the mqtt server running.
The other two clients are "slaves". Between the "master" and the "slaves" is a control word request/response implemented to register disconnects (two topics, interval one second).
The "master" also checks the mqtt server by subscribing the $sys.broker.uptime topic. It is only looking for a change.
If i switch of the two "slaves", there is a time comming, i will see inside the log "Outgoing messages are being dropped". That is correct, i understand.
But nearly at the same time, i will not receive anymore the $sys.broker.uptime topic, even if the two clients come back.
Is this a bug, or a normal behaviour?
I think it is a bug. Even if the outgoing messages are droped, i should receive the stats from the server. There are different topics, isn´t it?
The machine, where the mqtt server is running, is a Win10 IoT LTSB 2019. The running version of the mqtt server is 2.0.20, but it happens also with earlier versions.
with regards
Thomas
The text was updated successfully, but these errors were encountered: