Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Prefix disappearing from bridged topics after the first message

Hi all,

Pål and I ended up discussing this off list. It is a bug and has been
fixed for an upcoming 1.4.2 release.

Cheers,

Roger



On Fri, Apr 10, 2015 at 10:47 AM, Evensen, Pål <Paal.Evensen@xxxxxxx> wrote:
> Hi, I’m having a hard time understanding the following behaviour:
>
>
>
> With the following bridge topic filter:
>
>
>
> topic +/+/+/+/events out 1 /dev/ 15060012/dev/
>
>
>
> ...I publish a message to the local topic, using the following command:
>
>
>
> $ mosquitto_pub -t /dev/serial/123/com_door/2/events -m "werwer" -q 1
>
>
>
> ...which in turn are correctly forwarded over the bridged topic:
> '15060012/dev/serial/123/com_door/2/events' to another message broker.
>
>
>
> So far, so good. The problems start when publishing subsequent messages.
> Suddenly, the prefix has disappeared from the bridge (as can be observed
> from the included mosquitto log). These subsequent messages never reach the
> other server. When restarting the local mosquitto, the first message
> published after restart are forwarded.
>
>
>
> I’m on Ubuntu 64-bit, using mosquitto version 1.4.1 (build date 2015-04-03
> 07:41:26+0000)
>
>
>
> Log:
>
>
>
> 1428656875: New connection from 127.0.0.1 on port 1883.
>
> 1428656875: New client connected from 127.0.0.1 as mosqpub/31020-paal-desk
> (c1, k60).
>
> 1428656875: Sending CONNACK to mosqpub/31020-paal-desk (0, 0)
>
> 1428656875: Received PUBLISH from mosqpub/31020-paal-desk (d0, q1, r0, m1,
> '/dev/serial/123/com_door/2/events', ... (6 bytes))
>
> 1428656875: Sending PUBACK to mosqpub/31020-paal-desk (Mid: 1)
>
> 1428656875: Sending PUBLISH to local.15060012 (d0, q1, r0, m27, , ... (6
> bytes))
>
> 1428656875: Received DISCONNECT from mosqpub/31020-paal-desk
>
> 1428656875: Client mosqpub/31020-paal-desk disconnected.
>
> 1428656875: Received PUBACK from local.15060012 (Mid: 27)
>
> 1428656878: New connection from 127.0.0.1 on port 1883.
>
> 1428656878: New client connected from 127.0.0.1 as mosqpub/31022-paal-desk
> (c1, k60).
>
> 1428656878: Sending CONNACK to mosqpub/31022-paal-desk (0, 0)
>
> 1428656878: Received PUBLISH from mosqpub/31022-paal-desk (d0, q1, r0, m1,
> '/dev/serial/123/com_door/2/events', ... (6 bytes))
>
> 1428656878: Sending PUBACK to mosqpub/31022-paal-desk (Mid: 1)
>
> 1428656878: Sending PUBLISH to local.15060012 (d0, q1, r0, m28,
> '/dev/serial/123/com_door/2/events', ... (6 bytes))
>
> 1428656878: Received DISCONNECT from mosqpub/31022-paal-desk
>
> 1428656878: Client mosqpub/31022-paal-desk disconnected.
>
> 1428656878: Received PUBACK from local.15060012 (Mid: 28)
>
>
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


Back to the top