]> Sergey Matveev's repositories - public-inbox.git/commit
lei-daemon: do not leak FDs on bogus requests
authorEric Wong <e@80x24.org>
Wed, 24 Mar 2021 09:23:35 +0000 (14:23 +0500)
committerEric Wong <e@80x24.org>
Wed, 24 Mar 2021 23:01:21 +0000 (23:01 +0000)
commit69175b02c000d3ff5f03e5a88701468f121af4b6
treea44663dd3e58c6e4a4140510a8661b67f900e456
parent636604567b8ff6118c5fcf25e2912a50e0050ca2
lei-daemon: do not leak FDs on bogus requests

If a client passes us the incorrect number of FDs, we'll vivify
them into PerlIO objects so they can be auto-closed.  Using
POSIX::close was considered, but it would've been more code to
handle an uncommon case.
lib/PublicInbox/LEI.pm
t/lei-daemon.t