Fix send quota being incorrecly reset on reconnect.

Closes #1822. Thanks to Sarek.
pull/1858/head
Roger A. Light 5 years ago
parent 3806296c15
commit 298d84941e

@ -1,3 +1,6 @@
Client library:
- Fix send quota being incorrecly reset on reconnect. Closes #1822.
1.6.12 - 2020-08-19
===================

@ -103,6 +103,7 @@ int handle__connack(struct mosquitto *mosq)
mosquitto_property_read_int32(properties, MQTT_PROP_MAXIMUM_PACKET_SIZE, &mosq->maximum_packet_size, false);
mosq->msgs_out.inflight_quota = mosq->msgs_out.inflight_maximum;
message__reconnect_reset(mosq);
connack_callback(mosq, reason_code, connect_flags, properties);
mosquitto_property_free_all(&properties);

Loading…
Cancel
Save