I want to subscribe to topic that is not duplicated.

Asked by Sang kyeong Nam

I test this case.

1. A receiver connect to server, 'clean session' is false.
2. The receiver subscribe to same topic many times.
3. A Sender publish a message to the topic.
4. Receiver receive duplicate message.

If the receiver subscribe three times on case #2, receive three messages on case #4.

I want to subscribe to topic is not duplicated.
It is impossible that subscribe only once. Because receiver can't know that sender has subscription data of receiver.
If receiver write subscription record in receiver's memory and use it, couldn't receive any message after that sender clean session.

Question information

Language:
English Edit question
Status:
Solved
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Solved by:
Sang kyeong Nam
Solved:
Last query:
Last reply:
Revision history for this message
Roger Light (roger.light) said :
#1

Hi Sang,

I agree, I think this is a bug so I've made a bug report out of it.

Revision history for this message
Sang kyeong Nam (nskpc1) said :
#2

Solved thid problem.

Revision history for this message
dpux (dux-deepak) said :
#3

Hi Sang, how did you solve this problem ? Can you please share your solution ?

Revision history for this message
Roger Light (roger.light) said :
#4

Hi Dpux,

This was fixed in mosquitto 0.10. If you're still seeing a problem, could you please open a new bug report?

Thanks,

Roger