mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-14 00:42:41 +08:00
Motivation: LineBasedFrameDecoder discarded everything after EOF and delivered it in the left-over bytes error. For the real world however that doesn't make much sense, you'd want all previously received lines and only receive the partial lines as left-overs. Modifications: deliver lines until there are only partial lines left, even in case of EOF. Result: LineBasedFrameDecoder more useful