Files
swift-nio/Sources
tomer doron e32a436466 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
2019-04-11 14:12:59 +01:00
..
2019-02-26 14:15:56 +00:00
2019-03-25 12:09:16 +02:00
2019-03-25 12:09:16 +02:00