From e56203faaccc05dc4d6f6c9986e02ccafbd7a11b Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 24 Jan 2018 20:16:47 +0100 Subject: [PATCH] Update docs --- Build/MQTTnet.nuspec | 2 ++ Frameworks/MQTTnet.NetStandard/Serializer/MqttPacketReader.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/Build/MQTTnet.nuspec b/Build/MQTTnet.nuspec index 172d360..946154f 100644 --- a/Build/MQTTnet.nuspec +++ b/Build/MQTTnet.nuspec @@ -12,6 +12,8 @@ MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker). * [Core] Fixed some still thread blocking parts in the code (thanks to @kpreisser). * [Core] Updated 3rd-Party packages. +* [Core] Fixed an issue when reading the body of a package from a disconnected sender (thanks to @kpreisser). +* [Core] Fixed wrong parsing of the body length (thanks to @kpreisser). * [Client] The client interfaces are now implementing _IDisposable_. * [Client] The disconnected event now contains the exception which was thrown and causing the disconnect. * [Server] Fixed an issue which lets the server block 1 second after accepting a new connection (thanks to @kpreisser). diff --git a/Frameworks/MQTTnet.NetStandard/Serializer/MqttPacketReader.cs b/Frameworks/MQTTnet.NetStandard/Serializer/MqttPacketReader.cs index bcab98d..b54085f 100644 --- a/Frameworks/MQTTnet.NetStandard/Serializer/MqttPacketReader.cs +++ b/Frameworks/MQTTnet.NetStandard/Serializer/MqttPacketReader.cs @@ -114,6 +114,7 @@ namespace MQTTnet.Serializer { throw new MqttProtocolViolationException($"Remaining length is invalid (Data={string.Join(",", readBytes)})."); } + multiplier *= 128; } while ((encodedByte & 128) != 0);