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

Not working as expected in specific scenario #477

Closed
mikeS7 opened this issue Jun 25, 2017 · 1 comment
Closed

Not working as expected in specific scenario #477

mikeS7 opened this issue Jun 25, 2017 · 1 comment

Comments

@mikeS7
Copy link

mikeS7 commented Jun 25, 2017

I'm using mosquitto 1.4.12 configured with persistence storage.

Client is connected with retained "will message" with payload 0 (which means disconnected), on connect client sends retained message to the same topic with payload 2 (which means connected).

If connection is lost or keep-alive interval exceeded mosquitto set payload to 0 (will message), but if I restarted mosquitto and the client lost connection at the same time and will not restore connection I've got message with payload 2.
In such scenario connection status is incorrect.

I expect that mosquitto should set payload to "will message" on restart or after keep-alive interval.

@ralight
Copy link
Contributor

ralight commented Jun 27, 2017

I think this is fixed now, so I'm closing this pending the release.

@ralight ralight closed this as completed Jun 27, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants