Branch 'pykolab-0.6' - kolabd/__init__.py

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Sun Jan 26 16:24:58 CET 2014


 kolabd/__init__.py |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 12fa045b423f8bafc489d53e4de141a459b2424a
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Sun Jan 26 16:24:16 2014 +0100

    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

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()




More information about the commits mailing list