summaryrefslogtreecommitdiff
path: root/nslcd/myldap.h
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-08-20 16:16:24 +0200
committerArthur de Jong <arthur@arthurdejong.org>2013-08-21 21:42:18 +0200
commit8bdb28933154d9ee0e7e45e68c094bc507cb89db (patch)
treeff0d70881acd71e11625b6280b93d5bfd72f7d89 /nslcd/myldap.h
parentd58f163b5aceb570aa7bd41b2c8edb3307a3a980 (diff)
Implement function for resetting reconnect times
This implemens a myldap_immediate_reconnect() function that resets the reconnect timer to retry failing connections to the LDAP server upon the next search. This can be used to cut the reconnect_sleeptime and reconnect_retrytime sleeping periodss short if we have some indication that the LDAP server is available again.
Diffstat (limited to 'nslcd/myldap.h')
-rw-r--r--nslcd/myldap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/nslcd/myldap.h b/nslcd/myldap.h
index 9367b43..8c4551a 100644
--- a/nslcd/myldap.h
+++ b/nslcd/myldap.h
@@ -90,6 +90,10 @@ void myldap_session_check(MYLDAP_SESSION *session);
After a call to this function the referenced handle is invalid. */
void myldap_session_close(MYLDAP_SESSION *session);
+/* Mark all failing LDAP servers as needing quick retries. This ensures that the
+ reconnect_sleeptime and reconnect_retrytime sleeping period is cut short. */
+void myldap_immediate_reconnect(void);
+
/* Do an LDAP search and return a reference to the results (returns NULL on
error). This function uses paging, and does reconnects to the configured
URLs transparently. The function returns an LDAP status code in the