]> Sergey Matveev's repositories - public-inbox.git/commit
gzipfilter: replace Compress::Raw::Deflate usages
authorEric Wong <e@yhbt.net>
Sun, 5 Jul 2020 23:27:24 +0000 (23:27 +0000)
committerEric Wong <e@yhbt.net>
Mon, 6 Jul 2020 20:01:15 +0000 (20:01 +0000)
commitf26183401e3abfb64ad82537151f2718ac889074
treeff5118417538eae8375c9bdc5023ceca1d1e647a
parent967f6d1b1626392ee4340ea356a00651462377b3
gzipfilter: replace Compress::Raw::Deflate usages

The new ->zmore and ->zflush APIs make it possible to replace
existing verbose usages of Compress::Raw::Deflate and simplify
buffering logic for streaming large gzipped data.

One potentially user visible change is we now break the mbox.gz
response on zlib failures, instead of silently continuing onto
the next message.  zlib only seems to fail on OOM, which should
be rare; so it's ideal we drop the connection anyways.
lib/PublicInbox/GzipFilter.pm
lib/PublicInbox/MboxGz.pm
lib/PublicInbox/WwwStream.pm