Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
This problem is in MQTTv311:
When log is rotated and mosquitto gets reloaded, inactive clients are detected as disconnected.
If persistent_client_expiration is longer than one day, those clients will never expire...
I cannot reproduce the problem of clients being disconnected on HUP using a stripped down test environment.
What I can reproduce is the fact that v311 clients never expire because for v311 clients session_expiry_interval is always set to UINT32_MAX on connect and the expiration check does
Probably a fix for the problem would be: