]> Sergey Matveev's repositories - public-inbox.git/commit
mbox: be fair to other HTTP clients
authorEric Wong <e@80x24.org>
Sat, 6 Aug 2016 01:58:47 +0000 (01:58 +0000)
committerEric Wong <e@80x24.org>
Sat, 6 Aug 2016 02:03:36 +0000 (02:03 +0000)
commitd9732203aa53d1fd7b3ba5fae415d3ac003937a0
tree57e4139dfbd93fd1c864a016893eb0264864aa47
parentb478f5be70f5e210347c7692333bb65ad3316f72
mbox: be fair to other HTTP clients

At least for public-inbox-httpd, this allows us to avoid having
a client monopolize one event loop tick of the server for too
long.  It hurts throughput for the /all.mbox.gz endpoint, but I
doubt anybody cares and the latency improvement for other
clients would be appreciated.

We already do the same fairness thing for HTML pages.
lib/PublicInbox/Mbox.pm