Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.10.0
-
None
-
68fe97befd4a05dad5f3a7efadc299db6ab9a9cf
Description
When a protocol error occurs and the client disconnects, further QMqttClient::connectToHost() calls will never be able to connect. The whole client object must be recreated. This is easily testable by running nc -k -l 1883, writing random stuff when the client connects, and then running a proper mqtt broker while trying to reconnect with the client.