-
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
Mqtt connection close | close event triggered #1782
Comments
I think it would help if you provide more details. How much time elapsed before the close event was triggered: Seconds? Minutes? Hours? Days? Months? |
If running on node please add the env var |
Time is not fixed, It behaves randomly, and after a few seconds reconnect with mqtt broker.
Let me know if you need anything else. |
I need this, when the error happens. Also please post the version you are using and if you are not using latest upgrade to latest and retry |
Hello @robertsLando Please find the below debug logs.
Current mqtt version: 4.3.7 Now, I try with latest version and let you know @robertsLando sorry fo the late reply Thanks for your response. |
Please let me know if the bug persists with latest version. Also please post new logs with the latest version, by checking your logs it seems to me the issue is kind of related to the keepalive/restart issue I recently fixed in #1779 |
This issue is resolve, As discussed with my mqtt broker team, their is an load balancing issue with broker. large number of client connected with single broker and rest of the broker instances are cloudn't taken connection. After resolving the issue, it working fine. Therefore in my conslusion this issue from broker end. As you mention this issue is related to keepalive so for the safer side I'll increase keepalive time in client configuration. I am closing this issue now. If anyone face the same issue then please reopen it. Thanks for your response @robertsLando |
Hello All,
I facing the mqtt connection issue. Initially, the connection was established but after some time the close event triggered and didn't receive any parameters. Therefore we are unable to troubleshoot the issue.
Please anyone assist me in resolving this issue.
Thank you in advance.
The text was updated successfully, but these errors were encountered: