]> Sergey Matveev's repositories - public-inbox.git/commit
nntp: improve fairness during XOVER and similar commands
authorEric Wong <e@80x24.org>
Wed, 7 Mar 2018 09:46:46 +0000 (09:46 +0000)
committerEric Wong <e@80x24.org>
Wed, 7 Mar 2018 09:48:14 +0000 (09:48 +0000)
commit747dadaf56334765b29e63e6559e735b914edff9
treedcc8fd6ab9ed2191eacd6725bd42d891662c5c1c
parentebb59815035b42c276a89a585e16e69f51dbdb98
nntp: improve fairness during XOVER and similar commands

For other commands generating long responses, we generally want
to yield to another client after emitting 100 .  However,
XOVER-based responses already query 200 lines worth of responses
at a time, so we were sending 20000 lines before yielding to
other clients.  This may help avoid timeouts for some clients.
lib/PublicInbox/NNTP.pm