]> git.michaelhowe.org Git - packages/p/paho-mqtt.git/commit
Remove message from inflight when not connected
authorHmvp <hmvp@hmvp.nl>
Tue, 16 Sep 2014 08:34:24 +0000 (10:34 +0200)
committerHmvp <hmvp@hmvp.nl>
Tue, 16 Sep 2014 14:12:01 +0000 (16:12 +0200)
commit849f74336a6aec355e7d1b619c4a6fa89463b748
tree17022de26a673872eab410d41f925c8ac6e08864
parent3273793f4bfe994ff44b47f09745abd7943b9d15
Remove message from inflight when not connected

Publishes with qos > 0 which are sent before a CONACK is received are still counted as inflight
even though they don't really get sent.  This means they get sent after the retry period (20 sec default)

But this won't work when max_inflight is 1 since this means no retry will get sent and we wait untill keepalive is exhausted
This then forces a reconnect and will reset stuff so messages can be sent.

Change-Id: I516a6cce8e5bbfbd3030711a80044af4e5bf6733
Signed-off-by: Hmvp <hmvp@hmvp.nl>
src/paho/mqtt/client.py