When the client sends a packet, verify that the length of the packet matches what the Packet requires.
This can be done using a verifyLength() function that gets checked before invoking handlePacket(). However, the netty pipeline may need to be reworked to ensure that packets are properly handled when a packet is BOTH to short or to long.
- If a packet is to short, then netty should continue to listen for data and try again later
- If a packet is to long, then the packet should be truncated and the tail end should be given back to netty
When the client sends a packet, verify that the length of the packet matches what the Packet requires.
This can be done using a
verifyLength()function that gets checked before invokinghandlePacket(). However, the netty pipeline may need to be reworked to ensure that packets are properly handled when a packet is BOTH to short or to long.