Re: [mqtt] DUP bit on QoS=1 message can be used for QoS=2 delivery ?

33 views
Skip to first unread message

Nicholas O'Leary

unread,
Jul 2, 2012, 3:58:31 PM7/2/12
to mq...@googlegroups.com
Hi,

Sorry I missed your question the first time around and it appears I've
replied to your repost rather than the original.

Cheers,
Nick


On 30 June 2012 04:51, cogitoergosum <nages...@gmail.com> wrote:
> May I please request you to consider the following flow ?
>
> 1. Client sends PUBLISH message on topic t0 with DUP=0, messageId=1 with
> QoS=1.
> 2. Broker logs the message.
> 3. Broker finds n subscribers interested in t0.
> 4. Broker starts delivering to all n subscribers. For every delivery, the
> broker maintains a delivery log to indicate a message has been sent to this
> client.
> 5. All deliveries made, broker sends a PUBACK to the publishing client.
>
> Suppose, by the time 4 is happening, the publishing client has decided that
> it was waited long enough for the PUBACK and resends a PUBLISH with DUP=1
> and messageId=1.
>
> 1. Broker notes the PUBLISH has DUP=1.
> 2. Broker looks up to see who have already received the message. (See 4
> above. Note that, it is possible that, by this time new subscribers would
> also have subscribed to this topic. This would make the list of interested
> subscribers > n. Similarly, the number of interested subscribers could also
> become < n.)
> 3. Broker delivers to all subscribers who haven't already received messages.
> 4. All deliveries made, broker sends a PUBACK to the publishing client.
>
> So, eventually all clients receive only one copy of message.
>
> What am I missing ?
>
> --
> To learn more about MQTT please visit http://mqtt.org
>
> To post to this group, send email to mq...@googlegroups.com
> To unsubscribe from this group, send email to
> mqtt+uns...@googlegroups.com
>
> For more options, visit this group at
> http://groups.google.com/group/mqtt
Reply all
Reply to author
Forward
0 new messages