gausby / tortoise

A MQTT Client written in Elixir
Apache License 2.0
314 stars 54 forks source link

Specifying a handler module that does not implement the handler behaviour fails unintuitevly #120

Open mobileoverlord opened 4 years ago

mobileoverlord commented 4 years ago

When setting up a connection for the first time, it might be easy to overlook that the handler points to a module that was not fully configured. This fails silently and causes the system to "appear to be responsive and connected" but it is not. pings and publish messages will hang forever.

gausby commented 4 years ago

I will make sure the MQTT 5 branch will validate the tortoise handler before using it. I know I have a todo in the code about this in the current version.