Skip to content
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

Closed
ahmetalperenbulut opened this issue Oct 26, 2018 · 7 comments
Closed

Rc - Out of memory #340

ahmetalperenbulut opened this issue Oct 26, 2018 · 7 comments

Comments

@ahmetalperenbulut
Copy link

ahmetalperenbulut commented Oct 26, 2018

if client disconnects, can occur "out of memory" error constantly.
The error occurs in this line
rc = 1 please check this assigment in code
if it is true, please change it in this way rc = MQTT_ERRNOMEM

Thank you..

@PierreF
Copy link
Contributor

PierreF commented Dec 16, 2018

It's indeed wrong. RC = 1 is not out of memory, it's "generic error".

@bjoernbusch
Copy link

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?

@nawab36085
Copy link

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.

@nawab36085
Copy link

Created a pull request to fix this issue: #441

@drmikecrowe
Copy link

@bjoernbusch seeing a similar issue -- did you discover what the issue was?

@bjoernbusch
Copy link

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.

@MattBrittan
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants