Open rgaufman opened 6 years ago
@rgaufman Thank you for this feedback.
In order to prevent the client trying to reconnect forever, default setting limit the reconnection attempt. This is constant that could be set by hand. (PahoMqtt::RECONNECT_RETRY_TIME = 3)
Hmm, the thing is it could be an unstable internet connection, so I want paho to retry forever, but it seems to get into a state where it is never able to reconnection until I kill and restart the process manually. Any ideas?
I ran an experiment, I have this code:
I started mosquito and could see the expected output:
I then tried killing and restarting mosquitto quickly and paho reconnected. However I then killed mosquitto and ran: sleep 120; mosquitto -c /usr/local/etc/mosquitto/mosquitto.conf -v
After doing this, paho no longer reconnects, and is stuck on:
Any ideas what could be the issue?