mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
Fixed wrong buffer size calculation.
This commit is contained in:
@@ -14,7 +14,8 @@ namespace MQTTnet.Formatter
|
||||
public sealed class MqttPacketWriter : IMqttPacketWriter
|
||||
{
|
||||
public static int InitialBufferSize = 4096;
|
||||
public static int MaxBufferSize = 4096 + 4;
|
||||
|
||||
public static int MaxBufferSize = 4096 * 4;
|
||||
|
||||
byte[] _buffer = new byte[InitialBufferSize];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user