Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] A Few Questions about mosquitto.conf File

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Devil Here <heredevil008@xxxxxxxxx> wrote:
> Hi Karl,
> Thanks for your prompt and early reply , I read the man page about
> config file again and I also agree that there are some points where the
> man page does not properly explains a few fields. 
> Regarding my queries, I checked for 1 and 5 again and I agree with your
> reasons (my mistake on part of reading the man page properly) but what
> would be behavior of broker if i set the "max_inflight_messages" to 25,
> and by some circumstances there is a 26th message for a client which
> comes in the queue of broker for a topic??.

Again, you're NOT sending messages to a client.  You're sending them to
a topic. Which _may_ have a subscriber.  


> However, for point 2 my question was a little bit ambiguous and i got
> the answer with help of Q1 itself.
> By point 3, I meant that lets suppose I am publishing to a topic
> "test/dev" and there is only 2 clients subscribed to this topic (one is the publisher and the other one is only the 
> subscriber of the topic). 

Note the publisher doesn't have to be subscribed at all.

> After some days/some period of time the subscriber disconnects from the topic 
> "test/dev", and the publisher is still publishing to the topic. Now If I want to delete this topic and all the 
> messages published on this topic from the broker queue, then is it possible to do that by some means??

_IF_ the client was persistent, and _IF_ it had subscribed at a higher qos level (1 or 2) then there would be messages queued for that _client_.   Those can be aged out by the persistent client expiration setting, but there's no explicit knob in mosquitto to do this.  You can however reconnect with the same client id and subscribe/unsubscribe with clean session = true, which will also drop any data for the persistent client that no longer exists.

There is no topic to delete.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJVrkR5AAoJEBmotQ/U1cr2qnUP/3TK8NzYhB+JEA4WAo1vFcJ9
bxm3lhnQoUnpBqGcPvU/LOAMClfqkEwh15iyxgvrX+Q3SSQZ9hChyyFz/g1IB3ym
6DtSDpn3kowiFS97ZgZGwSWSmA3pkZQd8fjKTeKBZ3lSj89QEqQC4fCLfue4IL0K
DNZNDiOz6eaL4qrEgiRMNLtYKpgLVKE1ckCynwEnRAGWjGEkkHLPQIRjw2e/qNGZ
a6a/vXKbzc933yQWmLHMMgOwYrpewBvqv2hsPpvqFjjsui5zqFx8YfgIQYsbUz/M
BMU9ADu7mFB//j60KJJYjLoKrKuPYH6XHr1LtsGaB1doA0QnxBU1LFAkWAf5ifvz
agdaxLt5SKqRCWrY7A5TRlZHMWF3WO9qHk29ucTxmUdIJUI9Hzq+HjjRaBJoVqqs
gEujuWUIrqTB2lJypEYHF1ve2/Dns8Snzb32VzsvV5NvSqSZ9J0yMKygqy9lMDoa
KC/FCAL3DOEKlPguDt1Q8ofRD9HNr/RY7k4fg9wGevA8a/DON2XEw0G+ZfR0pd+B
vRSwtCfIf/w/g9lfmBdDiRy+TinYi9q0BTpY8bM+4jzP1G8h/XT+xqk+l7CGwijt
5hvmdAt6nUR850910Jz13cymO3x7D+VV6OST++aMVr8B7VBCgssEvC9YgJQv5f0t
mb6iqQS8tJ3F108PnAN2
=yRYe
-----END PGP SIGNATURE-----

Back to the top