ppkarwasz opened a new pull request, #52: URL: https://github.com/apache/mina/pull/52
Adds two configuration knobs to `CompressionFilter` to control the maximum decompression ratio of deflate streams: - `maxDecompressRatio` (default 100): the maximum decompression ratio accepted by the filter. The ratio is computed cumulatively over the total bytes read and written, so an individual highly-compressed chunk does not on its own trip the check. - `decompressRatioMinSize` (default 1 MiB): a grace size below which the ratio check is skipped, avoiding false positives on small payloads where the initial chunks are highly-compressed. Given the growing number of `CompressionFilter` constructor parameters, it may be worth introducing a builder pattern, if the project agrees. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
