grobian / carbon-c-relay

Enhanced C implementation of Carbon relay, aggregator and rewriter
Apache License 2.0
380 stars 107 forks source link

Dispatcher can lost some metrics on connection with compression #386

Closed msaf1980 closed 5 years ago

msaf1980 commented 5 years ago

If client send some metrics and decompressed size greater than METRIC_BUFSIZ or read return 0 - dispatcher silently drop metrics in buffers. I tested this on gzip-compressed stream. But other methods affected too.

grobian commented 5 years ago

This was fixed in e969ce3130849a99cd87daff77528cdada78425e