-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reconnect logic may get in endless loop #180
Comments
I digged a bit further and the problem is the following:
|
kriskep@2e662a8 fixes this problem |
Thank you, I was also experiencing this issue! |
kriskep
referenced
this issue
in kriskep/MQTT.js
May 9, 2014
* do not generate 'close' event on ping failure - rely on socket 'close' event instead * destroy() socket instead end() to make sure 'close' event comes quickly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is possible that the reconnection procedure may get in an endless loop of close and connect events.
The code below reproduces the problem on Ubuntu 12.04 with default mosquitto installation. Note I had to use iptables to simulate bad network conditions.
The text was updated successfully, but these errors were encountered: