Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Repeated messages

Hi Romu

What version of Mosquitto your using?
What OS your running Mosquitto on?
Maybe share your mosquitto config file as well :)



On Thu, Oct 30, 2014 at 3:57 PM, Roger Light <roger@xxxxxxxxxx> wrote:
Hi Romu,

Do you disconnect quickly after receiving the messages? It is possible
that the PUBACKs from your client are not sent to the broker before
you disconnect.

You can test this out by looking at the broker logs with "log_type
debug" (or by starting with "-v"). Look for "Received PUBACK from
...."

Cheers,

Roger


On Thu, Oct 30, 2014 at 6:47 AM, Romu Hu <huruomu@xxxxxxxxx> wrote:
> Hi,
>
> I'm facing a weird problem: Sending 5 messages ('1', '2', '3', '4', '5')
> using android phone (PAHO mqtt library) to a topic (using mosquitto as
> broker), using qos=1, not retained, the subscriber (another android phone,
> also using PAHO mqtt library) of the topic receives these messages, then
> shutdown the network connection of the subscriber phone and turn it on again
> after about 30 seconds, the subscriber immediately receives '3', '4' and '5'
> again, then shutdown and restart the network again, the subscriber receives
> '4' and '5' again, shutdown and restart the network again, the subscriber
> receives '5'.
>
> The receiving of the repeated messages is not 100% reproducible. Sometimes
> the receiving of the repeated messages happens a couple of minutes after
> network reconnection.  The publisher and receiver always connects to the
> broker with clean session as false.
>
> Why is this happening?
>
>
> Thanks
> Romu
> _______________________________________________
> 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
_______________________________________________
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