Files
swift-nio-extras/Sources
Cory Benfield e8000754be Backport #177 to 1.9 (#179)
Motivation

Currently we don't confirm that the decompression has completed
successfully. This means that we can incorrectly spin forever attempting
to decompress past the end of a message, and that we can fail to notice
that a message is truncated. Neither of these is good.

Modifications

Propagate the message zlib gives us as to whether or not decompression
is done, and keep track of it.
Add some tests written by @vojtarylko to validate the behaviour.

Result

Correctly police the bounds of the messages.
2022-09-16 09:30:05 +01:00
..
2021-06-18 11:58:57 +01:00
2019-04-12 15:08:10 +01:00