Please sign in to comment.
optional max payload size for ByteToMessageDecoder (#957)
* optional max payload size for ByteToMessageDecoder Motivation: ByteToMessageDecoder aggregate data in memory as part of their normal operation. the ability to limit how much they aggregate is critical in many real-life applications Modifications: * add optional maximumBufferSize argument to ByteToMessageDecoder initializer * test for buffer size when maximumBufferSize is set and throw ByteToMessageDecoderError.payloadTooLarge error Result: users can limit how much memory ByteToMessageDecoder takes and handle the exception on their end
- Loading branch information...
Showing with 72 additions and 3 deletions.