yosssi / gmq

Pure Go MQTT Client
MIT License
345 stars 46 forks source link

invalid PINGRESP Packet #4

Open kostasoft opened 7 years ago

kostasoft commented 7 years ago

Hi. Thanks for excellent MQTT client! I use your client together with the broker from hrotti in one application. After a while after start of my application (in which your client is connected to the broker, subscribes for a topic and waits for messages), the client falls with an error: "invalid PINGRESP Packet" As I understand, the server for some reason ceases to respond to ping. And how it is possible to make reconnect in case of miss of the response to ping from the broker? That the client didn't fall, and tried to be reconnected?

62che commented 7 years ago

Hello. I am getting same error message as you! In my debugging, i found that concurrency problem with this code. So i will suggest to project owner to fix it!