]> Sergey Matveev's repositories - public-inbox.git/commit
nntp: simplify long response logic and fix nesting
authorEric Wong <e@80x24.org>
Mon, 24 Jun 2019 02:52:48 +0000 (02:52 +0000)
committerEric Wong <e@80x24.org>
Mon, 24 Jun 2019 05:26:27 +0000 (05:26 +0000)
commit3ac6b68138da02cea825f22468d9850c67c15916
tree58ca159c64906a104c1e37034516da2e1eed91cb
parentb86c1790854c6d8b8299e5b71ad067b97cff548b
nntp: simplify long response logic and fix nesting

We can get rid of the {long_res} field and reuse the write
buffer ordering logic to prevent nesting of responses from
requeue.

On FreeBSD, this fixes a problem of callbacks firing twice
because kqueue as event_step is now our only callback entry
point.

There's a slight change in the stdout "logging" format, in
that we can no longer distinguish between writes blocked
due to slow clients or deferred long responses.  Not sure
if this affects anybody parsing logs or not, but preserving
the old format could prove expensive and not worth the
effort.
lib/PublicInbox/NNTP.pm