we are using mqtt broker version 2.0.11 from eclipse running on Ubuntu 22.04.1.
This is the configuration file (server)
persistence true
persistence_location xxxxxxxxxx
per_listener_settings true
log_timestamp_format [%Y-%m-%d %H:%M:%S]
max_inflight_messages 1000
#
# Port 1883 (NO TLS)
#
listener 1883
allow_anonymous true
allow_zero_length_clientid false
#
# Port 8883 (TLS)
#
listener 8883
allow_anonymous false
allow_zero_length_clientid false
cafile xxxxxxx
certfile xxxxxxx
keyfile xxxxxxx
dhparamfile xxxxxxx
password_file xxxxxxx
acl_file xxxxxxx
We have a client that has been disconnected from the broker for about 6 days.
When the client restarted we had this message ClientState: xxxxxxxxxxx: Timed out as no activity, keepAlive=20,000,000,000 lastOutboundActivity=5,084,923,567,979 ....
This is the client configuration parameters (relevants)
QoS=2
AutoReconnect=true
CleanSession=false
connectionTimeout=60
keepAliveInterval=20
maxInflight=1000
No old messages have been sent...
Is there any retention period of old messages?
Thanks in advance for your support.
The is no default retention period when using mosquitto as your broker. The is an option to set one, but as noted in the man page, if this value is not set then sessions (and the associated queued messages) will be kept for ever.
This strongly implies some other problem, hence the checking that client ids do truly match across reconnects.