mgdm / Mosquitto-PHP

A wrapper for the Eclipse Mosquitto™ MQTT client library for PHP.
BSD 3-Clause "New" or "Revised" License
535 stars 147 forks source link

Random client disconnection #114

Closed monkey3d closed 4 years ago

monkey3d commented 5 years ago

Hello, I am under Fedora 31 with php version 7.3.11-1. I developed a mqtt client that worked very well with Fedora 29/30 for more than 2 years. Now the client connects, gives the expected information then disconnects for no apparent reason after a few minutes by giving the disconnect code 19. I took over the complete installation of the package (Mosquitto-alpha then Mosquitto-beta) but the disconnection still occurs. The problem is the same on a Fedora 31 workstation or Fedora 31 server version. This problem seems to have been encountered on Raspberry. ==> Do you have an idea of ​​the solution? Regards

monkey3d commented 4 years ago

Hi, After some research and testing, the problem seems to come from the broker (version 1.6.7). I had an extra-listener with the websocket protocol and when I removed it, I no longer have the problem of random disconnection. The php mosquitto client works well with php version 7.3.11. Regards