-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Regression: 2.0.21 disconnects clients with exceeded timeout, disconnecting.
#3226
Comments
I've seen something similar, it happens randomly, and in this case I think we weren't even able to send the CONNECT packet:
Edit: this is the new |
@CRCinAU Can you show us a matching |
It looks like a lot of the logs were ingest rate limited - however the one UUID pasted above that I could find that made it through the ingest filters is:
The embedded boards don't have persistent logging, so I'm unable to retrieve further information from the board itself. I did find a number of I hunted through some of the logs that did make it through the ingest rate limit and found a couple of examples - however I'm having to search for the timeout message, then backtrack for the connect message.
Our application logs were showing the easiest to track symptoms along the lines of "mqtt server went away, reconnecting" that was just on an endless loop. I'm not sure if this was related to a subscription, or a publish. Setting the timeout from 60 -> 600 was the first thing attempted, and that stopped the initial rush of reconnections and some normal behaviour seemed to occur, but the decision was made to roll back to 2.0.20 - where the above behaviour immediately stopped - even with the timeout set to 60. |
@CRCinAU on which platform/machines do you run mosquitto? |
This was using the official docker images on x86_64. |
@CRCinAU Great, thank you. I can see what the problem is and am working on a fix. |
The problem only occurs for the case where the client keepalive == max_keepalive |
@ralight yes, mosquitto uses |
mosquitto.conf:
Clients get disconnected rapidly with:
Changing either
max_keepalive
from 60 -> 600, or reverting to 2.0.20 seems to fix the issue in the meantime.The text was updated successfully, but these errors were encountered: