kingshard
kingshard copied to clipboard
if first packet and it is value is 0xfe, it maybe EOF_Packet
If the first byte of a packet is a length-encoded integer and its byte value is 0xfe, you must check the length of the packet to verify that it has enough space for a 8-byte integer.
If not, it may be an EOF_Packet instead. i think it should be handled as an exceptional in function LengthEncodedInt