Skip to content

Commit 29d1a6b

Browse files
committed
fixed one packet decoding issue
1 parent 8e1a09e commit 29d1a6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SuperSocket.MySQL/MySQLPacketDecoder.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ public MySQLPacket Decode(ref ReadOnlySequence<byte> buffer, object context)
2626
return null;
2727

2828
var reader = new SequenceReader<byte>(buffer);
29-
29+
30+
reader.Advance(4); // Skip the first 4 bytes of the header
31+
3032
// Read the first byte to determine packet type
3133
if (!reader.TryRead(out byte packetType))
3234
return null;

0 commit comments

Comments
 (0)