You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a client publish message (retained, QoS 0,1,2) reaches the broker it should be forwarded to subscribers, the topic should be updated and plugin interceptors should be called even if the client connection closes ungracefully.
Actual behavior
The message is forwarded to subscribers but the topic is not updated and plugin interceptors are not called if the client connection closes ungracefully.
To Reproduce
We can reproduce the issue with the MQTT.js client in Firefox:
window.onbeforeunload=(event)=>{// called by the browser when the webpage closesevent.preventDefault()mqttClient.publish("topic","payload",{retain: true})return""}
Details
Affected HiveMQ CE version(s): 2021.3-CE container image
The text was updated successfully, but these errors were encountered:
The retained topic of the broker is not updated. Which means a new subscription to the topic returns the old value. The new value, which has been sent to the previous subscribers, is not retained..
I could not reproduce this by closing the channel right after the publish was sent. Do you know what the js client actually does? Does it sent a DISCONNECT or closes the tcp channel with FIN packet? Is the problem occurring consistently or rather flaky?
Expected behavior
If a client publish message (retained, QoS 0,1,2) reaches the broker it should be forwarded to subscribers, the topic should be updated and plugin interceptors should be called even if the client connection closes ungracefully.
Actual behavior
The message is forwarded to subscribers but the topic is not updated and plugin interceptors are not called if the client connection closes ungracefully.
To Reproduce
We can reproduce the issue with the MQTT.js client in Firefox:
Details
The text was updated successfully, but these errors were encountered: