]> Sergey Matveev's repositories - public-inbox.git/commit
watch: limit batch size of NNTP and IMAP workers, too
authorEric Wong <e@yhbt.net>
Mon, 31 Aug 2020 04:41:30 +0000 (04:41 +0000)
committerEric Wong <e@80x24.org>
Tue, 1 Sep 2020 00:19:00 +0000 (00:19 +0000)
commitbb8aaee10d771f7e1461efd8ec86269215787e52
tree3ee4aa21193dd192947cd854023cdeee5e7783da
parentf8687564d064ad513972835a7c386f482b56a715
watch: limit batch size of NNTP and IMAP workers, too

We don't want to monopolize locks because processes can easily
block each other if using `watchspam' on a Maildir while a big
NNTP or IMAP import is happening.

This can also happen if somebody configured a single inbox to
watch from several sources to merge several mailboxes into one
(e.g. both an IMAP and Maildir are watched).
lib/PublicInbox/WatchMaildir.pm