mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-19 02:53:06 +08:00
improve exceptions in case of corrupt packages close pipes after exception occoured to avoid lingering connections should fix #788
This commit is contained in:
@@ -10,6 +10,11 @@ namespace MQTTnet.AspNetCore
|
||||
{
|
||||
readonly ArrayPool<byte> _pool = ArrayPool<byte>.Create();
|
||||
|
||||
public SpanBasedMqttPacketWriter()
|
||||
{
|
||||
Reset(0);
|
||||
}
|
||||
|
||||
byte[] _buffer;
|
||||
int _position;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user