]> Sergey Matveev's repositories - public-inbox.git/commit
nntp: correctly log long response errors
authorEric Wong <e@yhbt.net>
Wed, 8 Jan 2020 10:44:09 +0000 (10:44 +0000)
committerEric Wong <e@80x24.org>
Wed, 8 Jan 2020 10:45:43 +0000 (10:45 +0000)
commitbfdf6728f442385f596175b261877ead1b37f9f6
tree751589f2a9af83b99876d6c9da818fb4a48836ae
parent57b19e788ed43d15487aac9927183b26a86c7d92
nntp: correctly log long response errors

We cannot safely call "fileno(undef)" without bringing down the
entire -nntpd process :x.  To ensure no logging regression, we
now stash the FD for the duration of the long response to ensure
the error can be matched to the original command in logs.

Fixes: 207b89615a1a0c06 ("nntp: remove cyclic refs from long_response")
lib/PublicInbox/NNTP.pm