]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
master: Avoid high CPU usage when process_min_avail reaches process_limit
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 5 Aug 2021 14:53:58 +0000 (17:53 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 5 Aug 2021 15:24:36 +0000 (18:24 +0300)
commit07a1c927470ffd7b3d60fc55be0adf66956e0e94
treec712f30ab8fdc0895455a894404660f0f861235c
parent40ae513d785802e095c1f8ca1791c696a2528b33
master: Avoid high CPU usage when process_min_avail reaches process_limit

process_min_avail handling always created a 0ms timeout to try to create the
missing processes. This timeout was supposed to stop when it couldn't launch
all the wanted processes, but the check wasn't done right. This ended up
causing the timeout to be called rapidly over and over again.
src/master/service-monitor.c