Exception which is thrown by a codec.ByteBuf is split into multiple ByteBuf using a fixed length
Case 1
maxLength = 10
BEFORE (25 bytes) AFTER (25 bytes)
+----------+ +----------+----------+---------+
| 25 bytes | -----> | 10 bytes | 10 bytes | 5 bytes |
+----------+ +----------+----------+---------+
Case 2
maxLength = 10
BEFORE (14 bytes) AFTER (14 bytes)
+------------------------------+ +------------+-----------+
| 3 bytes | 10 bytes | 1 bytes | ---> | (10 bytes) | (4 bytes) |
+------------------------------+ +------------+-----------+
ByteBufs on line endings.StringDecoderHandler, StringEncoderHandler.CodecException which is thrown when the length of the frame
decoded is greater than the allowed maximum.Copyright © 2022–2024. All rights reserved.