EXXETA / correomqtt

A modern graphical MQTT client using the HiveMQ client library. MQTT is a messaging protocol widely used in the IoT world. CorreoMQTT provides a UI to send and receive messages. It is able to handle multiple connections at the same time.
http://correomqtt.org
GNU General Public License v3.0
53 stars 21 forks source link

No publish flow registered #126

Open farion opened 2 years ago

farion commented 2 years ago

Describe the bug "No publish flow registered"-Error is thrown if something is published and nothing subscribed.

This is related to: https://github.com/hivemq/hivemq-mqtt-client/issues/368

To Reproduce

  1. Connect to a broker
  2. Do NOT subscribe
  3. Publish a message
  4. 18:38:25,104; WARN;ing.MqttIncomingPublishService;ntLoopGroup-6-1; ;No publish flow registered for MqttStatefulPublish{stateless=MqttPublish{topic=sdfsadf, qos=AT_MOST_ONCE, retain=false}, packetIdentifier=-1, dup=false, topicAlias=0, subscriptionIdentifiers=[]}.

Expected behavior No error happens

Desktop (please complete the following information):

farion commented 1 year ago

This needs remembering subscriptions from last session. Otherwise not cleaned sessions will receive messages and this error will appear. Not a real problem for now, just an error message.