]> git.ipfire.org Git - thirdparty/systemd.git/commit
userdbd: when we hit a flood of requests to start more workers, don't exit 28129/head
authorLennart Poettering <lennart@poettering.net>
Thu, 22 Jun 2023 16:51:34 +0000 (18:51 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 22 Jun 2023 16:59:24 +0000 (18:59 +0200)
commit2543deada391095887dd5b4fdefe3e66f76e32a9
tree0fe56dbb3f22dc4549981d9504812e51f4b7a326
parent3ef0103f2265a68e32847deaf84588c2fa711f3a
userdbd: when we hit a flood of requests to start more workers, don't exit

Let's tweak what we do if we detect a flood of requests to start more
workers: if none of the workers ever sticks (i.e. the worker count is
zero) then let's just give up, as before.

Otherwise, let's just not start more workers for a while, and do so
again after a while. Thus spawning ofr workers will "cool off" for a
while.

Fixes: #27028
src/userdb/userdbd-manager.c
src/userdb/userdbd-manager.h