Univention Bugzilla – Attachment 10556 Details for
Bug 52358
S4C synchronization loop after add+delete
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug52358-workaround.patch
Bug52358-workaround.patch (text/plain), 1.48 KB, created by
Arvid Requate
on 2020-11-17 20:55:17 CET
(
hide
)
Description:
Bug52358-workaround.patch
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2020-11-17 20:55:17 CET
Size:
1.48 KB
patch
obsolete
>diff --git a/services/univention-s4-connector/modules/univention/s4connector/s4/main.py b/services/univention-s4-connector/modules/univention/s4connector/s4/main.py >index e5f64bca87..1994ea2a04 100755 >--- a/services/univention-s4-connector/modules/univention/s4connector/s4/main.py >+++ b/services/univention-s4-connector/modules/univention/s4connector/s4/main.py >@@ -158,6 +158,7 @@ def _connect(s4, poll_sleep, baseconfig_retry_rejected): > print(time.ctime()) > # Aenderungen pollen > sys.stdout.flush() >+ idle = 5 > while True: > # Read changes from OpenLDAP > try: >@@ -165,26 +166,37 @@ def _connect(s4, poll_sleep, baseconfig_retry_rejected): > if change_counter > 0: > # UCS changes, read again from UCS > retry_rejected = 0 >+ idle = 0 > time.sleep(1) > continue > else: >- break >+ if idle == 5: >+ break >+ else: >+ time.sleep(1) >+ idle = idle + 1 > except ldap.SERVER_DOWN: > print("Can't contact LDAP server during ucs-poll, sync not possible.") > connected = False > sys.stdout.flush() > break > >+ i = 5 > while True: > try: > change_counter = s4.poll() > if change_counter > 0: > # S4 changes, read again from S4 > retry_rejected = 0 >+ idle = 0 > time.sleep(1) > continue > else: >- break >+ if i == 5: >+ break >+ else: >+ time.sleep(1) >+ i = i + 1 > except ldap.SERVER_DOWN: > print("Can't contact LDAP server during s4-poll, sync not possible.") > connected = False
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 52358
:
10552
|
10553
|
10554
| 10556