Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
LWT not sent on exceeded timeout #1143
Mosquitto version: 1.5.5
The following code is used to test LWT functionality in mosquitto over websockets.
When there is an unclean disconnect (python script is killed with SIGKILL - not SIGINT), the LWT is sent, as expected.
However, unplugging the device's network cable to simulate a loss of connectivity results in mosquitto logging the following, and no LWT is ever sent:
Should a LWT be sent in this case? How is one to know when a client is offline if no LWT is sent on timeout?