Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent client disconnect on SIGHUP only? #2404

Closed
rapli opened this issue Dec 13, 2021 · 1 comment
Closed

Persistent client disconnect on SIGHUP only? #2404

rapli opened this issue Dec 13, 2021 · 1 comment
Labels
Component: mosquitto-broker Status: Completed Nothing further to be done with this issue, it can be closed by the requestor or committer.

Comments

@rapli
Copy link

rapli commented Dec 13, 2021

I am running Mosquitto 2.0.9 and 2.0.11 on Ubuntu 20.04 with persistent_client_expiration set to 3d and just noticed that persistent clients seem to be disconnected only on SIGHUP / service reload. Assuming that this is the intended behaviour instead of disconnecting clients automatically when they have not reconnected in the time range defined by persistent_client_expiration, I think it could be useful to mention this in the documentation in order to prevent wrong expectations.

@ralight
Copy link
Contributor

ralight commented May 19, 2022

The intention with persistent_client_expiration is to be able to remove clients that connected with clean session set to false and are not currently connected. If the client then doesn't reconnect within the configured time period, the session will be removed from the broker.

I can see how the documentation isn't clear and how what you suggest could be taken as the meaning.

ralight added a commit that referenced this issue May 19, 2022
@ralight ralight added Component: mosquitto-broker Status: Completed Nothing further to be done with this issue, it can be closed by the requestor or committer. labels May 19, 2022
@ralight ralight closed this as completed May 19, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: mosquitto-broker Status: Completed Nothing further to be done with this issue, it can be closed by the requestor or committer.
Projects
None yet
Development

No branches or pull requests

2 participants