We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83adf81 commit 55d4e68Copy full SHA for 55d4e68
MatterDotNet/Protocol/Connection/TCPConnection.cs
@@ -38,7 +38,7 @@ public async Task SendFrame(Exchange exchange, Frame frame, bool reliable)
38
PayloadWriter writer = new PayloadWriter(Frame.MAX_SIZE + 4);
39
writer.Seek(4);
40
frame.Serialize(writer, exchange.Session);
41
- BinaryPrimitives.WriteUInt32LittleEndian(writer.GetPayload().Slice(0, 4).Span, (uint)writer.Length);
+ BinaryPrimitives.WriteUInt32LittleEndian(writer.GetPayload().Slice(0, 4).Span, (uint)writer.Length - 4);
42
await stream.WriteAsync(writer.GetPayload());
43
exchange.Session.Timestamp = DateTime.Now;
44
}
0 commit comments