sorry I was wrong, I miss a line of code, previous client would be disconnect immediately, whatever new clean session is false or true.
btw, these is no topic stored for a subscriber, the topic inside SUBSCRIBE msg would be free after add this subscriber to the sub-tree.
From: jianhui zhan
Sent: Monday, December 11, 2017 10:37:45 PM
To: General development discussions for the mosquitto project
Subject: Re: [mosquitto-dev] Determine client ID from DB
Hi,
From current implementation, I saw that while receive a client id with changes clean session = false to true, the Mosquitto would not disconnect/clean previous client, until a periodical persistent client check,
or never. This depends on the "persistent_client_expiration" which wrote inside your mosquitto.conf.
From: mosquitto-dev-bounces@xxxxxxxxxxx <mosquitto-dev-bounces@xxxxxxxxxxx> on behalf of Mahesh Herle <mahesh@xxxxxxxxxx>
Sent: Monday, December 11, 2017 17:17
To: General development discussions for the mosquitto project
Subject: Re: [mosquitto-dev] Determine client ID from DB
The mosquito dB dump program also publishes the topic subscription (which dumps, topic name, QoS, clientid and timestamp I think, in addition to other details).
We had used it sometime to look for all clients of a particular kind and get the clientid so that we can remove the subscription of theirs (by running the mosquitto_sub command with -I option)
This email and any files transmitted with it are confidential and intended solely for the use of the individual
or entity to whom they are addressed. Any views expressed by the sender in this communication are those of the sender alone and do not necessarily express the views or the policy of the organization unless intended to do so. If you are not the named addressee
you should not disseminate, distribute or copy this e-mail. If you have received this email in error please immediately notify
admin@xxxxxxxxxx and delete this email
from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Thank you.
|