Closed dethegeek closed 8 years ago
Hi @dethegeek , please try the latest commit.
Hi
Thank you, this is exactly what I expected, especially the PINGRESP handler. I was thinking about this to self monitor my service.
I updated the library a few days ago and I noticed a better behavior of my service. No more hich CPU usage, but I may still observe some memory leaks. I'll think I'll definitely adopt your library for my project.
Hi
The library keeps sending pings despite the connections has been closed
Here is the relevant backtrace, repeated again and again many times per second
In
sskaje\mqtt\MQTT->ping()
there is no test on the actually written bytes, making the library unable to detect the broken pipe.I guess the library will enter in an endless loop because no MesageHandler callback can run to unsubscribe all topics or close the connection.
Maybe
sskaje\mqtt\MQTT->ping()
should throw an exception here.