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.
${$self->{buf}} = '';
return $ret;
}
+
+ # be fair to other clients on public-inbox-httpd:
+ return '';
}
$res = $self->{cb}->($self->{opts});
$self->{msgs} = $res->{msgs};