]> Sergey Matveev's repositories - public-inbox.git/commit
lei: propagate curl errors, improve internal consistency
authorEric Wong <e@80x24.org>
Wed, 3 Feb 2021 08:11:37 +0000 (22:11 -1000)
committerEric Wong <e@80x24.org>
Thu, 4 Feb 2021 01:37:09 +0000 (01:37 +0000)
commit50c074ec9e030f05b53773dafb29d6098f58b56c
tree25b7e8f4716c6ff677d806855655a031edebaf4c
parentc7420334c0d69bf948ad670c822753334e4664a8
lei: propagate curl errors, improve internal consistency

IO::Uncompress::Gunzip seems to be losing $? when closing
PublicInbox::ProcessPipe.  To workaround this, do a synchronous
waitpid ourselves to force proper $? reporting update tests to
use the new --only feature for testing invalid URLs.

This improves internal code consistency by having {pkt_op}
parse the same ASCII-only protocol script/lei understands.

We no longer pass {sock} to worker processes at all,
further reducing FD pressure on per-user limits.
lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiOverview.pm
lib/PublicInbox/LeiXSearch.pm
lib/PublicInbox/PktOp.pm
t/lei.t