swift-nio-extras icon indicating copy to clipboard operation
swift-nio-extras copied to clipboard

LengthFieldBasedFrameDecoder can't handle packets where the length field counts itself

Open sowelipililimute opened this issue 2 years ago • 0 comments

Currently, the LengthFieldBasedFrameDecoder reads a length, and then reads however many bytes the length specifies. Some protocols, include the length in the declared length field of a message. Without a way to make the LengthFieldBasedFrameDecoder subtract the length of the length field from the size to read, LengthFieldBasedFrameDecoder can't handle these sorts of protocols.

sowelipililimute avatar May 27 '22 01:05 sowelipililimute