Page 1 of 1

Mosquitto 2.0.12 errors

Posted: Saturday 05 February 2022 12:29
by EddyG
I upgraded mosquitto from 2.0.11 to 2.0.12
With that upgrade came an upgrade of libwebsockets12 to libwebscockets18
After that upgrade I got these errors.

Code: Select all

Bad socket read/write on client mqttjs_4cba3646: Invalid arguments provided.
I reverted back to 2.0.11 and libwebsockets12 and everything works fine again.

But does anybody know how to solve the error?

Re: Mosquitto 2.0.12 errors

Posted: Saturday 05 February 2022 13:40
by jvdz
maybe you are seeing this issue and can try that "fix"? : https://github.com/eclipse/mosquitto/is ... -968064107

This seems to be a similar issue like this with another client: https://forum.micropython.org/viewtopic ... 76&p=60836

Re: Mosquitto 2.0.12 errors

Posted: Saturday 05 February 2022 16:43
by EddyG
The second link I saw, but no solution.
The first link brought me to the setting "max_keepalive" which was to low in my case.
Tnx. Problem solved.

Re: Mosquitto 2.0.12 errors

Posted: Wednesday 12 October 2022 15:17
by Eraser
Thanks for this. I changed "max_keepalive" in Mosquitto from 10 to 1000 and now everything works fine again.
I don't know if this value represents seconds or milliseconds but I guess the latter.