Skip to main content

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

On 2014/10/31 2:50, Oegma2 wrote:
Hi Romu

What version of Mosquitto your using?

1.3.5

What OS your running Mosquitto on?

Ubuntu Server 14.04.1 x86_64

Maybe share your mosquitto config file as well :)

# Default listener
bind_address xxx.xxx.xxx.xxx
port 9123
max_connections -1
cafile /etc/mosquitto/ca.crt
certfile /etc/mosquitto/server.crt
keyfile /etc/mosquitto/server.key
tls_version tlsv1.2
require_certificate true
use_identity_as_username false

# Extra listeners
listener 9124 xxx.xxx.xxx.xxx
max_connections -1
cafile /etc/mosquitto/ca.crt
certfile /etc/mosquitto/server.crt
keyfile /etc/mosquitto/server.key
tls_version tlsv1.2
listener 9125 xxx.xxx.xxx.xxx
max_connections -1
cafile /etc/mosquitto/ca.crt
certfile /etc/mosquitto/server.crt
keyfile /etc/mosquitto/server.key
tls_version tlsv1

# Persistence
autosave_interval 1800
autosave_on_changes true
persistence true
persistence_file mosquitto-persistence.db
persistence_location /var/lib/mosquitto/

# Logging
log_dest file /var/log/mosquitto.log
log_type error
log_type warning
log_type notice
log_type information
connection_messages true
log_timestamp true

# Security

pid_file /run/mosquitto.pid


Thanks
Romu

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



_______________________________________________
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