summaryrefslogtreecommitdiff
path: root/mail/dbmail/files/patch-0013-Increase-ldap-timeout-to-600s-10-mins
diff options
context:
space:
mode:
Diffstat (limited to 'mail/dbmail/files/patch-0013-Increase-ldap-timeout-to-600s-10-mins')
-rw-r--r--mail/dbmail/files/patch-0013-Increase-ldap-timeout-to-600s-10-mins34
1 files changed, 34 insertions, 0 deletions
diff --git a/mail/dbmail/files/patch-0013-Increase-ldap-timeout-to-600s-10-mins b/mail/dbmail/files/patch-0013-Increase-ldap-timeout-to-600s-10-mins
new file mode 100644
index 000000000000..ee606d7204f7
--- /dev/null
+++ b/mail/dbmail/files/patch-0013-Increase-ldap-timeout-to-600s-10-mins
@@ -0,0 +1,34 @@
+From 9a13e4878b94b742e17519c2f4379ee5a3498a73 Mon Sep 17 00:00:00 2001
+From: Alan Hicks <ahicks@p-o.co.uk>
+Date: Tue, 11 Oct 2016 14:34:59 +0100
+Subject: [PATCH 13/33] Increase ldap timeout to 600s (10 mins)
+
+---
+ src/modules/authldap.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git src/modules/authldap.c src/modules/authldap.c
+index 2a39e0e..3f43a56 100644
+--- src/modules/authldap.c
++++ src/modules/authldap.c
+@@ -126,7 +126,7 @@ static LDAP * ldap_con_get(void)
+ return ld;
+ }
+ int c = 0;
+- int c_tries = 120;
++ int c_tries = 600;
+ int err = -1; // Start wanting success
+ while (err != 0 && c++ < c_tries) {
+ // Loop until success or too many retries
+@@ -266,7 +266,7 @@ static LDAPMessage * authldap_search(const gchar *query)
+ char **_ldap_attrs = NULL;
+ int err = -1; // Start wanting success
+ int c = 0;
+- int c_tries = 60;
++ int c_tries = 600;
+ LDAP *_ldap_conn;
+
+ g_return_val_if_fail(query!=NULL, NULL);
+--
+2.10.1 (Apple Git-78)
+