Skip to content

Missing mqtt messages on persistent session restart #443

Answered by jmklix
jenia2007b asked this question in Q&A
Discussion options

You must be logged in to vote

What value are you using for the keepAliveTimeSecs? It might be that your session is expiring and you end up with a clean session because of that.

Docs:

Reconnection after a persistent session has expired

If a client doesn't reconnect to its persistent session before it expires, the session ends and its stored messages are discarded. When a client reconnects after the session has expired with a cleanSession flag to 0, the service creates a new persistent session. Any subscriptions or messages from the previous session are not available to this session because they were discarded when the previous session expired.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jenia2007b
Comment options

@jmklix
Comment options

Answer selected by jmklix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 2 days.
2 participants