-
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
client.reconnect()
will not proper set client.disconnecting
to false
#1284
Comments
The BTW, I'm having some instabilities with the client, but I'm testing some boosts on the broker settings to see if it fixes them. While trying to find some solution, I've also take a look on the code and this part took my attention: Lines 1551 to 1555 in d8be59e
If It'll be great if you have some time to comment @mcollina :) |
@rodrigobrochado I'm working to aggregate all this good feedback so we can make sure it gets addressed in the "vNext" (major version update) of this library. Could you provide a discussion commend here: #1324, with a summary of what you want done from this issue. It would be helpful. |
Thanks @YoDaMa. I think the huge work you've done in #1318, #1325 and are doing on vNext will probably fix this issue. My client was misbehaving and seemed to be related to the broker rejecting packages when it was full. When digging on the client source code, I've come to the strange behavior of the |
MQTT 5.0.0 BETA is now available! Try it out and give us feedback: |
This is an automated message to let you know that this issue has If this issue is still important, you can simply comment with a Thank you for your contribution. |
This issue was automatically closed due to inactivity. |
reconnect will set
disconnecting
anddisconnected
tofalse
, but it will call end later and reset them to true, even eventconnect
is already fired. And this make later_checkDisconnecting()
always failed.MQTT.js/lib/client.js
Lines 912 to 915 in 37b12cb
MQTT.js/lib/client.js
Line 855 in 37b12cb
_setupPingTimer()
is skipped whendisconnected
is true, so maybe I can get connection without ping for the second try? I didn't found any other code to setdisconnected
to false, but pingTimer maybe already broken when pingResp is already false in last connection.MQTT.js/lib/client.js
Lines 1481 to 1489 in 37b12cb
The text was updated successfully, but these errors were encountered: