Files
swift-nio/Sources/NIO
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-25 18:20:22 +00:00
2019-03-25 12:09:16 +02:00
2019-02-01 15:34:59 +00:00
2019-02-26 14:57:47 +00:00
2018-12-07 21:15:34 +00:00