Commit c7eda33
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 msg1 parent 23586bd commit c7eda33
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
301 | 300 | | |
302 | 301 | | |
303 | 302 | | |
| |||
746 | 745 | | |
747 | 746 | | |
748 | 747 | | |
| 748 | + | |
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
| |||
0 commit comments