Closed brocaar closed 8 years ago
This issue is hopefully fixed in the updated mqtt package.
There are still connection problems in the paho package, but both the latest lora-semtech-bridge
and loraserver
are able to recover from connection issues. I'll close this issue for now and will keep an eye on the paho mqtt client updates.
After running loraserver for a long time (I'm using the latest https://github.com/eclipse/paho.mqtt.golang version: 4ab3e86, but the problem is not exclusive to this version), it runs into mqtt connection issues. Most of the time, it is able to recover by (automatically) reconnecting and re-subscribing, but sometimes it looses the connection with the mqtt server (Mosquitto 1.4.3 in my case) and stops handling packets. Server is a Digitalocean Ubuntu 15.10 server. I see the same behaviour for the semtech bridge.
One part where the mqtt connection happens is: https://github.com/brocaar/loraserver/blob/master/application/mqttpubsub/backend.go
This problem might be related to https://github.com/eclipse/paho.mqtt.golang/issues/32
Please share your findings!
loraserver logs:
Mosquitto logs: