summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-01-26 16:24:16 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-01-26 16:24:16 +0100
commit12fa045b423f8bafc489d53e4de141a459b2424a (patch)
treec6a7672a14537b3895c405144a2232db2113bb24
parenta13424f09c029afb5e337b450b3fbf8a9c063c89 (diff)
downloadpykolab-12fa045b423f8bafc489d53e4de141a459b2424a.tar.gz
Pause between starting domain synchronizations if the number of domains added is greater or equal to 5, for otherwise you will hammer your LDAP server to death
-rw-r--r--kolabd/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/kolabd/__init__.py b/kolabd/__init__.py
index 34e54e7..3f43872 100644
--- a/kolabd/__init__.py
+++ b/kolabd/__init__.py
@@ -267,6 +267,9 @@ class KolabDaemon(object):
for domain in added_domains:
domain_auth[domain] = Process(domain)
domain_auth[domain].start()
+ # Pause or hammer your LDAP server to death
+ if len(added_domains) >= 5:
+ time.sleep(10)
for domain in removed_domains:
domain_auth[domain].terminate()