Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put keepAliveTick in more sensible location (#140)
* Put keepAliveTick in more sensible location 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. 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 ``` * reset keepalive tick when send msg
- Loading branch information