Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Question

Why does the event.log show statements like the following:

"Client ID: xyz session has expired at TIMESTAMP. All persistent data for this client has been removed."

for clients that connected with cleanSession=true?
And why is does logged at different times after the client disconnected?
Will the session be re-used, if the client re-connects before the persistent data has been removed by HiveMQ?

Answer

HiveMQ has an internal clean up job that removed existing, expired data.
In your case (cleanSession) the data expires as soon as the client disconnect and will be cleaned up with the next clean up. This usually takes between 30 seconds and 20 minutes.

The existing data will NOT be re-used, if the client re-connects between a disconnect and the clean up running through.

  • No labels