What's Changed
- Add PublishDropped metrics by @thedevop in #167
- Record statistics about the number of publish packets dropped in the event that a client is too slow to respond (following changes in v2.2.0).
- Expose dropped publish messages count in sys info by @mochi-co in #170
- Renamed PublishDropped to MessagesDropped for alignment with MessagesSent and MessagesReceived, which are limited to publish packets, and exposes this information in a new $SYS topic,
$SYS/broker/messages/dropped
.
- Renamed PublishDropped to MessagesDropped for alignment with MessagesSent and MessagesReceived, which are limited to publish packets, and exposes this information in a new $SYS topic,
- Fix potential NextPacketID endless loop, expand tests by @mochi-co in #169 per #168
- Refactors
client.NextPacketID
to fix a potential edge-case in next packet ID acquisition which could cause an infinite loop. Additionally, replaces some instances of65535
withmath.MaxUint16
and adds an unexported field, client.maximumPacketID to assist with testing (eg. populate 10 messages instead of 65535 in order to generate an overflow in certain unit tests). With thanks to @thedevop for suggestions and reviews.
- Refactors
Full Changelog: v2.2.0...v2.2.1
Tests
- Builds
- Unit Tests Passing
- Paho Interoperability Passing