From 226b067233bc86571f88b1ae67c0c99b3d2b27cc Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Wed, 8 Dec 2010 22:54:06 +0000 Subject: in each worker wake up once in a while to check whether any existing LDAP connections should be closed git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1319 ef36b2f9-881f-0410-afb5-c4e39611909c --- nslcd/myldap.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nslcd/myldap.h') diff --git a/nslcd/myldap.h b/nslcd/myldap.h index 0a3bd0b..f7df4a3 100644 --- a/nslcd/myldap.h +++ b/nslcd/myldap.h @@ -76,6 +76,11 @@ void myldap_set_credentials(MYLDAP_SESSION *session,const char *dn, with these searches. This does not close the session. */ void myldap_session_cleanup(MYLDAP_SESSION *session); +/* This checks the timeout value of the session and closes the connection + to the LDAP server if the timeout has expired and there are no pending + searches. */ +void myldap_session_check(MYLDAP_SESSION *session); + /* Close the session and free all the resources allocated for the session. After a call to this function the referenced handle is invalid. */ void myldap_session_close(MYLDAP_SESSION *session); -- cgit v1.2.3