In short, keepAliveTick should not be reset every time a packet is received, since, for ex, a QoS 0 packet does not require an Ack. So depending on QoS levels used, this will cause the server to disconnect the client due to no control message soon enough. Likely related to #128.
Steps to recreate issue:
Set client keepalive to 20 seconds
dont publish anything for > 30 seconds
spam the device with something like snippit below:
#!/bin/bash
SPAM_DELAY=1;
while :
do
mosquitto_pub -h hostname -t /test/topic -m 'test playload'
sleep $SPAM_DELAY;
done
In short, keepAliveTick should not be reset every time a packet is received, since, for ex, a QoS 0 packet does not require an Ack. So depending on QoS levels used, this will cause the server to disconnect the client due to no control message soon enough. Likely related to #128.
Steps to recreate issue: