Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Help needed, odd behaviour: What are the reasons the Broker will stop sending PUBLISH to a client?

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

Felipe de Andrade Neves Lavratti <felipelav@xxxxxxxxx> wrote:
> Again,
> 
> The problem is easy to replicate:
> 
> The setup is this:
> - I have 6 clients connected to the broker
> - All clients are subscribed to the topic 'test'
> - All clients reply on topic 'testout' for each message received in topic 'test'

fwiw, you might find it easier to diagnose if you send a sequence
instead of a fixed string.  I personally found the mid's to be rather
odd in your earlier trace,

> - All clients send PINGs each 20s
> - A connection expires in 60s

so, is keepalive 20sec, and you have private modified code then?  and
you're still based on 1.3.x?  or something else?  note in your traces
that d==0, so persistent client expiry is completely irrelevant, custom
code or not.

> - Every message is QOS2
> 
> The test routine is this:
> Publishes to the topic 'test' periodically in a frequency faster than
> the clients can answer (on my slow 802.15.4 network I use 3 seconds)

honestly I think your contiki setup is fundamentally broken, and you
should chase this up there.  read the pinola paper just for starters,
you should be looking at _maybe_ 250ms.  3 seconds is _insane_ and even
if you hack mosquitto to make this particular test case pass, I think
you will just see new problems down the road.  please consider Roger's
points about (ab)using (or trying) client expiry to "fix" things that
maybe need a different solution.

Cheers,
Karl P


> until you realise that the broker will stop sending any publish to a
> client until the client reconnects.
> 
> It is feeling like a bug, what extra info you may need on this?
> 
> Bellow another log of the problem.
> 
> --------
> 
> 
> **** Send a PUBLISH to everybody, including fe80::215:8d00:76:813f.
> 
> 1436302152: Sending PUBLISH to aaaa::215:8d00:76:813a (d0, q2, r0,
> m46, 'test', ... (9 bytes))
> 1436302152: Sending PUBLISH to fe80::215:8d00:76:8140 (d0, q2, r0,
> m46, 'test', ... (9 bytes))
> 1436302152: Sending PUBLISH to fe80::215:8d00:76:813b (d0, q2, r0,
> m46, 'test', ... (9 bytes))
> 1436302152: Sending PUBLISH to fe80::215:8d00:76:8136 (d0, q2, r0,
> m46, 'test', ... (9 bytes))
> 1436302152: Sending PUBLISH to fe80::215:8d00:76:8139 (d0, q2, r0,
> m46, 'test', ... (9 bytes))
> 1436302152: Sending PUBLISH to fe80::215:8d00:76:813f (d0, q2, r0,
> m46, 'test', ... (9 bytes))
>

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

iQIcBAEBAgAGBQJVnE1PAAoJEBmotQ/U1cr2imEP/RPSa4BL3/6j+Rue8m02lGHV
TEXoFCkbStWxAlq8hxA/8o48ok5kcr0cpnYE3/7HudXtRncC62PftNpcDcM1PsYZ
1ht2QIk5Xt5zrBQEd37Wi/h2ZJ/5XGaxI4Jxqr7Zz98LjfSR4Hrx+oRbogMZVtcI
Tc2QQDZkdcN7C8ZyReRCQs5yIDABeBL3IqCxQ+ndFXQR/kcghm01nRtbq78qo5NR
9d7W7gRxDb5mzI/sR+ULf+pqeyFFfz77cme4hAtvg4cvd04oc8b/dfCk9gWATJce
ECkVCWQl6kg+QDqW/v/bkkcGN5UJMlgSO0j74tFkQqno8cQydmb33Zt+3yW9t1wM
lbxWBrihASoxx6PrvIFheXAJXDfz1hwKMqni6dyuQ1UGX8t09RyCd4s0oFg3WTQ1
15/mQC/JMKmrbwHp3y9BPJCA4/mda3lgf+wj5CZyVtc+dVyapaNf3qh3ZhqnDiIA
J5RX+41dYTX1HEhPFAXLnaufShVP2MsSDvJ2U8U3yqUhfDVL6/9axV4Rr6KnW5Uu
jfnk3nYsWg18yIsY5hkNTee2V2o/zVJYAJgypjruPPmm8vzQX6TdarICyR3BnKZd
bT+fVNyT90OUST1d/SHR5QiWsTFauzuAwpnTfd4ZOfO7ITvCwPf520qk1yHV5Eaw
YrzmZD9JqRHobfapgkhw
=b6ZI
-----END PGP SIGNATURE-----

Back to the top