]> Sergey Matveev's repositories - public-inbox.git/commit
nntp: improve error reporting for COMPRESS
authorEric Wong <e@80x24.org>
Sun, 7 Jul 2019 06:57:43 +0000 (06:57 +0000)
committerEric Wong <e@80x24.org>
Sun, 7 Jul 2019 06:57:43 +0000 (06:57 +0000)
commit71e8a392d465bf4de60f37ecb3dec5cea5c3a376
treee5cff0497bd65b1aacf2f0bbd1c59b54e6434f99
parenta3c054cbbf2a51be121b3237c5d223acc5c8a2f4
nntp: improve error reporting for COMPRESS

Add some checks for errors at initialization, though there's not
much that can be done with ENOMEM-type errors aside from
dropping clients.

We can also get rid of the scary FIXME for MemLevel=8.  It was a
stupid error on my part in the original per-client deflate
stream implementation calling C::R::Z::{Inflate,Deflate} in
array context and getting the extra dualvar error code as a
string result, causing the {zin}/{zout} array refs to have
extra array elements.
lib/PublicInbox/NNTP.pm
lib/PublicInbox/NNTPdeflate.pm