Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Core Dumped when authentication plugin returns MOSQ_ERR_AUTH few times #490
I also faced somewhat similar issue.
Im not a very "C" savvy person
@ralight Assert macro does an application abort on FALSE isnt it? Is it a good idea to have this Assert there since the broker would fail on unsuccessful assertion? Or is it an expected behavior.
@dhanushkad I was able to do the same and it solved the issue. But not sure why assert(pollfds[context->pollfd_index].fd == context->sock); returns false.
@ralight I re-created this issue by returning MOSQ_ERR_AUTH for any username or password that is passed to the auth plugin to connect to the Mosquitto broker. After trying to connect to the broker few times from a web-socket client broker gets
My auth plugin method is as below,
Mosquitto broker configuration file -