-
Notifications
You must be signed in to change notification settings - Fork 726
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
Rc - Out of memory #340
Comments
It's indeed wrong. RC = 1 is not out of memory, it's "generic error". |
Is there any way to find out what's actually causing the disconnect? I have the issue that my client constantly disconnect after about 1 minute with error code 1. How can I drill down on the reason? |
Is there any plan to fix this. I think fix is quite simple by setting rc to MQTT_ERR_CONN_LOST before passing rc to self.on_disconnect(self, self._userdata, rc) in function loop_misc. The loop_misc function later on anyway returns the right value MQTT_ERR_CONN_LOST in case of an failed ping. |
Created a pull request to fix this issue: #441 |
@bjoernbusch seeing a similar issue -- did you discover what the issue was? |
it was something on the server side that the packages where not handled properly or something. I had to use a different reverse proxy on my server and now it works. |
I believe this was resolved in this commit (Jul 7, 2021). As such I'm going to close the issue; if the problem still exists then please free free to reopen it. |
if client disconnects, can occur "out of memory" error constantly.
The error occurs in this line
rc = 1
please check this assigment in codeif it is true, please change it in this way rc = MQTT_ERRNOMEM
Thank you..
The text was updated successfully, but these errors were encountered: