about summary refs log tree commit homepage
path: root/lib/PublicInbox/WWW.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-11-02 09:35:37 +0000
committerEric Wong <e@80x24.org>2023-11-03 06:39:33 +0000
commit3aa444b4c4eef1c40a49e5db191eb844c6624b58 (patch)
tree73b724bfc7b76c7306497514e2f63177e022b3be /lib/PublicInbox/WWW.pm
parent17ceb50fe054384dc65fdcbdc786dd125bf07947 (diff)
downloadpublic-inbox-3aa444b4c4eef1c40a49e5db191eb844c6624b58.tar.gz
readline (<FH>) isn't wrapped by autodie, and there's no
way to know if read(2) errors truncated the readline output.
IO::Handle->error isn't reliable on Perl < v5.34.

Thus, combining the `eof' and `close' (combined with autodie) is
the only way we can detect read(2) errors (injected via strace)
when called via `readline' (aka <$fh>).  Neither using `eof'
nor `close' alone is sufficient, they must be combined to detect
errors from buffered `readline'.
Diffstat (limited to 'lib/PublicInbox/WWW.pm')
0 files changed, 0 insertions, 0 deletions